maxSIMhealth / GEN

Gamified Educational Network
GNU Affero General Public License v3.0
3 stars 2 forks source link

[Upload] Send files directly to AWS S3 and bypass server file size limitations (error 413) #547

Open andreibosco opened 1 week ago

andreibosco commented 1 week ago

DigitalOcean apps use cloudflare, and the max file size allowed is 500mb. Anything larger returns HTTP 413 (entity too large). It is possible to update the file upload template form to. use ajax to upload the file directly to AWS S3, bypassing cloudflare and server limitations.

Example: https://github.com/justdjango/upload-large-files https://justdjango.com/blog/how-to-upload-large-files