javascript - Blueimp File Uploader - Chrome folder upload limitations -


only chrome 22 , later supports uploading relative folder names @ dragging , dropping folders on browser upload (html5).

when trying upload multiple files chrome drag&drop folder support, experiencing kind of limitation. , couldn't find way change or disable limitation.

  • when select 1000 files , drop uploader work , adds files upload list after waiting while processing. ok.

  • when select folder including 1000 files inside , drop uploader, uploader adds random 100 files in folder.

  • when create 110 folders, include 1 file each in folders, uploader adds 100 files leaving 10 folders out.

it seems, chrome file/folder upload mechanism somehow limits maximum items in folder while recursively crawling files & folders. , limitation number 100.

i couldn't find related documentation, , desperately in need raising limit 1000 file/folder each @ minimum or no limit.

thank already.

after searching relevant documentation 2 days, find answer in following url.

https://developer.mozilla.org/en-us/docs/web/api/directoryreader#readentries

and able fix blueimp uploader.

in jquery.fileupload.js

find:

            } else if (entry.isdirectory) {             dirreader = entry.createreader();             dirreader.readentries(function (entries) {                 that._handlefiletreeentries(                     entries,                     path + entry.name + '/'                 ).done(function (files) {                     dfd.resolve(files);                 }).fail(errorhandler);             }, errorhandler);         } else { 

replace:

        } else if (entry.isdirectory) {             dirreader = entry.createreader();              var entries = [];              var readentries = function () {                 dirreader.readentries(function (results /* entries */) {                      if (results.length) {                         entries = entries.concat(array.prototype.slice.call(results || [], 0));                         readentries();                     } else {                         that._handlefiletreeentries(                             entries,                             path + entry.name + '/'                         ).done(function (files) {                             dfd.resolve(files);                         }).fail(errorhandler);                     }                  }, errorhandler);             };              readentries();          } else { 

i hope helps.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -