pekebyte / pekeUpload

jQuery html5 file uploader plugin
http://pekebyte.github.io/pekeUpload
Other
82 stars 73 forks source link

Click to upload for container #20

Closed Multi-Thinker closed 8 years ago

Multi-Thinker commented 8 years ago

for bootstrap container or simple container where the link "browse your file" is not visible, clicking on container allow user to select file using explorer but that file was not added or recorded by system so I've requested commit a change where $(file).change is triggered and pass $(file).files to pekeUpload.checkfile(file[i]); for further process.

19

after line 48

                // when user click on container and browse file for upload
                this.obj.change(function(){
                    var files =  this.files; // get files from input $(input[type=file]).files
                    for (var i = 0; i < files.length; i++) {
                        pekeUpload.checkFile(files[i]); // send files for further process
                    }
                });
pekebyte commented 8 years ago

Thanks for your contribution!