Download utilities for transferring files to the user based on role or identity
maintained separate from the API (not available from the API)
location: portal/apps/server/download_utils.py
all files are temporarily held in /tmp/aerpaw_files/{uuid}/filename - a cron job will be needed to periodically clean up the files as they are not stored in the database, nor should the persist indefinitely
functions
[x] download_sftp_experiment_file - download experiment file from reference
[x] download_db_credential_public_key - download public credential
[x] download_db_credential_private_key - download private credential - one time access on creation
[x] download_db_user_tokens - download user tokens as JSON file
File download / download buttons
Download utilities for transferring files to the user based on role or identity
portal/apps/server/download_utils.py
/tmp/aerpaw_files/{uuid}/filename
- a cron job will be needed to periodically clean up the files as they are not stored in the database, nor should the persist indefinitelyfunctions
download_sftp_experiment_file
- download experiment file from referencedownload_db_credential_public_key
- download public credentialdownload_db_credential_private_key
- download private credential - one time access on creationdownload_db_user_tokens
- download user tokens as JSON file