You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works. But it shows the same error message across all files. I am looking for a way to send individual status message per file. Is this achievable through the plugin? Thanks in advance.
Other details:
$ pip show flask_dropzone
Name: Flask-Dropzone
Version: 1.5.4
Summary: Upload file in Flask with Dropzone.js.
Home-page: https://github.com/greyli/flask-dropzone
Requires: Flask
Required-by:
The text was updated successfully, but these errors were encountered:
@skewwhiff The key is that you did not enable the parallel upload configuration, so there would be multiple requests for your multiple uploads, but you're handling the uploads in a way which there should only be one request for all the uploaded files.
And the solution is simple, handling the multiple file upload just the same as a single file upload, keep in mind that you should not enable the parallel upload specific to your need.
So the view function could be simplified something like below:
Hi @greyli ,
Awesome plugin. I am using it to upload multiple files along with some server-side validation. Is there a way to return the individual status of each uploaded file? It is clear how to do it when only one file is being uploaded from https://github.com/greyli/flask-dropzone/blob/master/docs/advanced.rst#server-side-validation
Here's a barebones implementation of what works so far. I currently just append all error messages with the corresponding filename:
This works. But it shows the same error message across all files. I am looking for a way to send individual status message per file. Is this achievable through the plugin? Thanks in advance.
Other details:
$ pip show flask_dropzone Name: Flask-Dropzone Version: 1.5.4 Summary: Upload file in Flask with Dropzone.js. Home-page: https://github.com/greyli/flask-dropzone Requires: Flask Required-by:
The text was updated successfully, but these errors were encountered: