Dropzone.js - maxFilesize does not work

I am using Dropzone.js for my site. I need to download large files than the default maxFilesize 500 MB .

I tried changing the number in the .js file. Now the file seems to be accepted, but there is no (visible?) Progress in the download. The file does not have a red cross and is stuck at zero percent download.

Any ideas what I can do wrong? Or is this some kind of mistake?

Thanks!

+7
source share
3 answers

I just tested it in Chrome and it worked fine. (Which browser are you using?)

You may have downloaded so much time that you do not immediately see the update.

First of all: you should not change the properties in the .js file itself. Thus, you cannot upgrade to the new Dropzone without headaches. Therefore, configure your dropzone as recommended on the website.

About the download ... itโ€™s very difficult to say what might be wrong if you donโ€™t look at it. I suggest that you add some debugging information about status updates to make sure that your download is actually very slow.

Try this code and see if it solves your problem:

 <form id="my-dropzone" action="/target" class="dropzone"></form> <script> Dropzone.options.myDropzone = { maxFilesize: 500, init: function() { this.on("uploadprogress", function(file, progress) { console.log("File progress", progress); }); } } </script> 

If you can see the console exit at regular intervals, the download is fine, but it takes some time to finish.

+13
source

Dropzone.options must have outside document.ready or it will not work.

+4
source

Add to httpd.conf file:

 <Directory "/tmp/"> LimitRequestBody 256000 </Directory> 

After restart apache !

Link: https://www.cyberciti.biz/faq/apache-limiting-upload-size/

0
source

All Articles