LPology / Simple-Ajax-Uploader

Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995 stars 267 forks source link

Tips for multiple upload #153

Closed stefanKBL closed 8 years ago

stefanKBL commented 8 years ago

I needed to have multiple upload enable but autoSubmit False. I had to pass some vars from a form with each upload (First create a post and then attach images, example) So in the onChange Callback just put : var imgCount = uploader._queue.length; for (var i = 0; i < imgCount; i++) { uploader.submit(); /: submit each image to the url put in config } That's all and works fine. thanks