Does Flask automatically delete aborted large file upload?

My Flask application will allow the upload of large files (up to 100 Mb) to my server and I was wondering how Flask managed the chuncked file if the client decide to stop the upload half way ?

I read the documentation about File Upload but wasn’t able to find that mention. Does Flask automatically delete the file? How can he knows that the user won’t retry it?

Or do I have to manually delete the aborted files in the temporary folder ?

Thank you for your insighs.

Source: python

Leave a Reply