Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large file upload - Request gets cancelled #1561

Closed
daniyalCA opened this issue Jun 12, 2017 · 11 comments
Closed

Large file upload - Request gets cancelled #1561

daniyalCA opened this issue Jun 12, 2017 · 11 comments

Comments

@daniyalCA
Copy link

daniyalCA commented Jun 12, 2017

I am trying to upload video files of size 40-50mb. The progress bar freezes at a certain point and if i observe in my Networks tab on Google Chrome. The request gets cancelled and there is no error and the HTTP response header is empty.

However this is working for both image/video files which are around 10-15mb.

My code:
Dropzone.autoDiscover = false; var myDropzone = new Dropzone("#my-awesome-dropzone", { maxFiles: 1, parallelUploads: 100, acceptedFiles: '.3gp,.3gp2,.h261,.h263,.h264,.jpgv,.jpm,.jpgm,.mp4,.mp4v,.mpg4,.mpeg,.mpg,.mpe,.m1v,.m2v,.ogv,.qt,.mov,.fli,.flv,.mks,.mkv,.wmv,.avi,.movie,.smv,.g3,.jpeg,.jpg,.jpe,.png,.btif,.sgi,.svg,.tiff,.tif', previewTemplate: previewTemplate, previewsContainer: "#previews", autoProcessQueue:false, clickable: ".fileinput-button", });

P.S: It is not a server side issue as i have tried uploading without Dropzone and everything works smoothly.

@vinayk047
Copy link

vinayk047 commented Oct 9, 2017

Yes, I'm having same issue whenever i upload large file upload gets canceled after 30 seconds
and it definitely not server side issue i can upload large file on server with very long request time; only in case of dropzone it gets canceled after 30 seconds

@warmwaffles
Copy link

I am also experiencing this as well. My CORS are set correctly.

I am able to curl the file into my web server no problem, takes about 2 minutes on my crappy internet connection. But it gets to about 6 - 18% before just stopping in firefox or chrome or safari

@oak-tree
Copy link

oak-tree commented Oct 15, 2017

Update:
it may be due timeout configuration. More info at https://stackoverflow.com/a/46488162/1211174

@vinaykharecha I have the same issue. File gets canceled after 30 seconds. Anywork around?

@warmwaffles
Copy link

@oak-tree I will change my timeout to something super long and report back.

@warmwaffles
Copy link

@oak-tree this seemed to work for me, set the timeout to 3600000

@oak-tree
Copy link

@warmwaffles thanks for the info. seems that according to the doc it is possible to set it to zero in order to disable the timeout

@brendon
Copy link

brendon commented Jan 21, 2018

The trouble is that for some reason the timeout default is 30 seconds even though the documentation reports that it is set to 0 by default. You need to explicitly set it to 0 in your code.

@CodeBrauer
Copy link

CodeBrauer commented Mar 20, 2018

This needs to be changed in the documentation.

http://www.dropzonejs.com/#configuration-options

timeout
default: null

Its default value is 30 seconds.

@brendon
Copy link

brendon commented Mar 20, 2018

Since @enyo doesn't use GitHub anymore for this project I thought I'd post a link to the open issue at gitlab: https://gitlab.com/meno/dropzone/issues/89

The problem is deeper than just the timeout default. All defaults on the website are set to null incorrectly.

@AidasK
Copy link

AidasK commented Sep 27, 2018

Default value for timeout should not be set to 30s. It should not be limited like in every other uploader. It is stupid imo.

@brendon
Copy link

brendon commented Sep 27, 2018

It's now reported as 30 seconds by default on the Dropzone website, but I agree, it's a strange default given this can be used to show the progress of large file uploads (that's the point right?). Anyway, this repo at GitHub isn't used anymore so open an issue on Gitlab https://gitlab.com/meno/dropzone with your concerns. I also wouldn't recommend calling something stupid given this is somebody's hard work and you get it for free :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants