Very often you have to do some verification on the server to check if the file is actually valid. How to show an error returned by the server? There is a queuecomplete event now that fires when all files in the queue have been uploaded. How to get notified when all files finished uploading?Īt the moment there isn't a single event to do that, but you can listen to the complete event, which fires every time a file completed uploading, and see if there are still files in the queue or being processed. Increase this to create thumbnails of bigger files. There is a maxThumbnailFilesize option in Dropzone which defaults to 10 (MB) to prevent the browser from downsizing images that are too big. Why are some image thumbnails not generated? Please check with the appropriate documentation. Most servers limit the file upload size as well. If your files upload fine but aren't stored on the server, then it's due to your server configuration. Increase this to upload files bigger than that. There is a maxFilesize option in Dropzone which defaults to 256 (MB). To leave autoDiscover enabled, and configure your Dropzone in the init option of your configuration. You don't have to create an instance of Dropzone programmatically in most situations! It's recommended Turn off autoDiscover of specific elements like this: = false.Turn off autoDiscover globally like this: toDiscover = false, or.If you, later on, create a Dropzone instance yourself, you'll create a second Dropzone which causes this error. It then creates an instance of Dropzone for every element found. When Dropzone starts, it scans the whole document, and looks for elements with the dropzone class. This is most likely due to the autoDiscover feature of Dropzone. I get the error "Dropzone already attached." when creating the Dropzone. If you think that there is something missing, please contact me. I try to keep this FAQ as complete as possible.
0 Comments
Leave a Reply. |