flask-file-upload
flask-file-upload copied to clipboard
Easy file uploads for Flask.
As the title states...
found this on reddit(hi again) these javascript examples should be useful in promoting adoption. https://stackoverflow.com/questions/3717793/javascript-file-upload-size-validation/3717847 https://stackoverflow.com/questions/23945494/use-html5-to-resize-an-image-before-upload thanks for posting the code.
os.path is far inferior and worse to the newer pathlib. pathlib is a class based way of handling file paths, that works platform independently as it tries to translate paths.
Not sure if I am not using file_upload.save_files correctly, but the files that it saves are 0 bytes but have the correct name. Here is how I am using save_files:...
Add a method index (quick links FFU methods) t the top of the read me so users dont have to scroll all the way down to read a specific methods...
This test should identify the MySQL string length bug & remove the need to declare the current default 1000 string length
Explain file location on server, e.g. - table name -> id -> filename perhaps generate a small diagram from terminal of dirs etc. in ReadME & inline Docs.
Column nullable options https://github.com/joegasewicz/Flask-File-Upload/blob/a80909493168de2c99bf431a88e3056a8b53f6e5/flask_file_upload/column.py#L16
Explain how the configuration can be set up without passing in all kwargs as these can be assigned to `app.config` and we can just pass `app` to `FileUpload()`
Rollback for `save_files` method. If there is an exception commiting the changes of the model to the db, then the user of this library should be able to undo the...