Handling File Uploads With Flask - miguelgrinberg.com
Tue Sep 06 2022 14:20:40 GMT+0000 (UTC)
Saved by @Rmin #python #validation #flask #uploadfile
The second error condition is generated by the application when any of the validation checks fails. In this case the error was generated with a abort(400) call. Instead of that the response can be generated directly:
https://blog.miguelgrinberg.com/post/handling-file-uploads-with-flask
Comments