What would be the best way to handle very large file uploads (1 GB +) with Flask?
My application essentially takes multiple files assigns them one unique file number and then saves it on the server depending on where the user selected.
How can we run file uploads as a background task so the user does not have the browser spin for 1hour and can instead proceed to the next page right away?
- Flask development server is able to take massive files (50gb took 1.5 hours, upload was quick but writing the file into a blank file was painfully slow)
- If I wrap the app with Twisted, the app crashes on large files
- I've tried using Celery with Redis but this doesn't seem to be an option with posted uploads
- I'm on Windows and have fewer options for webservers
from Handling large file uploads with Flask
No comments:
Post a Comment