3

Currently when parallelChunkUploads is set to true, all the chunks are getting uploaded at the same time. If the file size is 6GB and the chunk size is 10MB, 600 chunks are getting uploaded at the same time. Is there a way to control the number of parallel uploads?

Configuration:
chunking: true,
chunkSize: 10000000,
forceChunking: true,
retryChunks: true,
retryChunksLimit: 3,
parallelUploads:1,
parallelChunkUploads: true
sivagee
  • 31
  • 3
  • I haven't used dropzone, but browsing through their docs doesn't give me an immediate answer for this either. You might have to open an issue on their GitHub repo. – Jerome Indefenzo Apr 20 '18 at 02:00
  • Thanks @JeromeIndefenzo, i opened an issue on their GitHub, no response yet though. – sivagee Apr 20 '18 at 17:49

1 Answers1

-1

Take a look at Dropzone.js docs http://www.dropzonejs.com/#config-parallelUploads

As explained in docs you can manage a queue setting the autoProcessQueu to false.

Enqueuing file uploads

When a file gets added to the dropzone, its status gets set to Dropzone.QUEUED(after the accept function check passes) which means that the file is now in the queue. If you have the option autoProcessQueueset to true then the queue is immediately processed, after a file is dropped or an upload finished, by calling.processQueue() which checks how many files are currently uploading, and if it’s less than options.parallelUploads, .processFile(file) is called. If you set autoProcessQueue to false, then .processQueue() is never called implicitly. This means that you have to call it yourself when you want to upload all files currently queued.

  • 1
    Since i didn't find a option there, i raised this query. – sivagee Apr 20 '18 at 01:42
  • You're right sivage. My answer could be better. Take a look at enqueuing options – Pablo Gonzalez Apr 20 '18 at 01:59
  • @PabloGonzalez, Thanks for your response, but my query is about chunked file upload and parallel upload of chunked parts of a single big file. parallelUploads is meant for regular file upload where you can control the number of parallel uploads. – sivagee Apr 20 '18 at 06:03