简体   繁体   中英

jQuery File Upload - make upload one by one

I'm using jQuery-File-Upload to make multiple uploads on my site. Whatever what I really like to do is upload one by one.

Ex:

I send 3 files [1,2,3].

The 1 file start the upload process while the others is paused.

When finish the upload will cal an AJAX to save the file on the DB.

When returns the success message from the file 1, the file 2 start to upload while the file 3 remains paused.

Is there a way to change the code so they do that?

You can try this: open the file jquery.fileupload.js

In the options section, find these lines and set:

  options: { 
    .
    .
    .
    singleFileUploads: true,
    limitMultiFileUploads: 1,
    .
    .
    .
    sequentialUploads: true,
    limitConcurrentUploads: 1,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM