You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've intentionally not exposed downloading of full audio source files before. We've got a number of reasons for doing so (including bandwidth costs!).
However, given the limits of HPC systems, it would be useful to allow downloading original source files in some limited fashion. Thus:
Create a new route, /audio_recordings/123456/original
That route triggers a download of the full original source file
It must use the send_file function
It must not support transcoding or trimming
It must only be exposed to the Admin or Harvester roles
The text was updated successfully, but these errors were encountered:
Closes#353
Extends the Media controller so that original audio files can be downloaded. Currently limited to harvester or admin only (as enabling this generally could be expensive in terms of bandwidth).
Also:
- Supports range requests for original audio
- Adds two helper funtions to AudioRecording model: a split hash function that reliably splits the hash protocol from the hash value; and a canonical filename function that can generate ideal storage names for audio recordings
- Also fixes `original_file_paths` and `original_format_calculated` methods on AudioRecording
- Adds support to range request for configuring download names and content disposition types
- Patches acceptance spec helper so that large binary blobs are not printed when tests fail
We've intentionally not exposed downloading of full audio source files before. We've got a number of reasons for doing so (including bandwidth costs!).
However, given the limits of HPC systems, it would be useful to allow downloading original source files in some limited fashion. Thus:
/audio_recordings/123456/original
send_file
functionThe text was updated successfully, but these errors were encountered: