Server responded with 0 code issue in Dropzone.js

15,212

Solution 1

This issue can have several reasons. How big are the files you are uploading? How long does the server execute a script? Which maximum file sizes are allowed to upload? I assume, this will be mainly an issue of the webserver settings instead of dropzone.js.

See this link for some ideas:

https://github.com/enyo/dropzone/issues/701

Solution 2

For me it was a browser issue because i was using dropzone.js on three different sections. For two of them it was working fine but after adding a third one, the third was giving me the error. But after trying it on a different browser it was okay.

Solution 3

I also faced this issue. It was related to running the script on a non HTTPS website. Once I switched from http to https it started to work properly. Thought it might be helpful for some of you guys.

Share:
15,212
core114
Author by

core114

Im a student and Love to learn and work in new technologies. Like all others, want to build something that will change the world,I like to develop front-end of mobile application platforms <div> <div> <p></p><p></p><p></p><span></span> <p></p><p></p><p></p><span></span> <p></p><p></p><p></p><span></span> <p></p><p></p><p></p><span></span> <p></p><p></p><p></p><span></span><div></div> <p></p><p></p><p></p><span></span><div></div><p> <p></p><p></p><p></p><span></span><div></div> <p></p><p></p><p></p><span></span><div></div> <p></p><p></p><p></p><span></span> <p></p><p></p><p></p><span></span> <p></p><p></p><p></p><span></span> <p></p><p></p><p></p><span></span> </div> </div>

Updated on June 19, 2022

Comments

  • core114
    core114 about 2 years

    Im used Dropzone.js, I Have some issue for this, I'm uploaded some image,after displayed this error Server responded with 0 code. look at my attached image you can understand it enter image description here

    html code

     <form action="/file-upload" class="dropzone"><div class="fallback">
        <input name="file" type="file" multiple />
      </div></form>
    
  • dns_nx
    dns_nx about 4 years
    Actually I don't know what happened to the issue on github. The issue on the github page seems to be gone. github.com/enyo/dropzone
  • Saeed Arianmanesh
    Saeed Arianmanesh about 4 years
    they migrate to gitlab
  • Islam Emam
    Islam Emam over 3 years
    You are right it's working for me also after switching
  • aiddev
    aiddev over 3 years
    @IslamEmam Glad to hear!