FileUpload: Run function on file before uploading to S3
I need to detect the duration of a video with something like ffmpeg before it gets uploaded to S3. Is this at all possible, or is the FileUpload streaming to S3 and there's no temporary file on the system that I can run ffmpeg on?
Otherwise, I will have to make a background job that downloads the file later and gets the duration.
Otherwise, I will have to make a background job that downloads the file later and gets the duration.