biigle / user-storage

:m: BIIGLE module to offer file upload and storage for users
GNU General Public License v3.0
0 stars 0 forks source link

Chunked file upload #9

Closed mzur closed 2 years ago

mzur commented 2 years ago

I now observed many instances where a file upload ran into the (already extended) 50 s script execution timeout. Passing a multi-GB file on the application and then uploading it to the S3 storage just took too long.

One alternative could be presigned upload URLs but they have the problem that they do not allow file size or MIME type validation.

The only other way is chunked uploads which require additional processing and application logic. Thoughts:

Bonus: We know the size of each file, which is required to implement #8. Also:

After implementation: