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

Include a multiple upload example? #193

Closed slambert closed 7 years ago

slambert commented 7 years ago

I'm able to get the basic example up an running. When I try to change it for multiple upload, I can't seem to get the results I'm hoping for. Could a multiple upload example be added?

LPology commented 7 years ago

What results are you not getting that you expect?

slambert commented 7 years ago

Right now I can only upload 1 file at a time - can't select more than one. Maybe I'm missing something simple?

I think I kept the html file pretty close to the same as in the example, but I know I made these changes:

      multiple: true,
      multipart: true,
      maxUploads: 10,
      autoSubmit: true,
samgre commented 7 years ago

We're experiencing the same issue. Multiple file uploads worked with v2.5.5, but not with v2.6.2.

Here's our config:

            'button': this.$el,
            'url': this.uploadRoot,
            'allowedExtensions': ['gif', 'jpeg', 'jpg', 'png'],
            'hoverClass': 'ui-state-hover',
            'focusClass': 'ui-state-focus',
            'multiple': true,
            'name': 'image',
            'customHeaders': {'X-CSRFToken': 'TOKEN'},
            'onSubmit': this.onUploadSubmit,
            'onError': this.onUploadError,
            'onComplete': this.onUploadComplete
bondydaa commented 7 years ago

We are using v2.6.2 as well and it seems that maxUploads has no effect to allow a user to select more than 1 file.

Using Chrome Version 60.0.3112.113 (Official Build) (64-bit), OSX Sierra 10.12.6 (16G29)

LPology commented 7 years ago

There was a change in the 2.6 release which added a new option multipleSelect to allow/disallow multiple file selection. Set multipleSelect to true in your plugin settings to enable multi file selection.

Check out the Version 2.6 release notes here:

https://github.com/LPology/Simple-Ajax-Uploader/blob/master/Changelog.md