pekebyte / pekeUpload

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

Enable Drag mode disable click mode, click mode didn't work #19

Open Multi-Thinker opened 8 years ago

Multi-Thinker commented 8 years ago

Hi, I can see drag mode is picking files from orignalEvent.dataTransfer.files and it is working fine without progress bar,

when i click on container to pick file, it just did not show anything at all..

Multi-Thinker commented 8 years ago

I've fixed the code by adding change event on this.obj.change so when input[type=file] get something it fire the checkFile phase.

this.obj.change(function(){
                    var files =  this.files;

                    for (var i = 0; i < files.length; i++) {

                        pekeUpload.checkFile(files[i]);

                    }

                });

but it should be fixed on core files too..

pekebyte commented 8 years ago

Hi, thanks for using pekeUpload. I noticed the problem and I updated the issue, actually is fixed on the version 2.1.1 2c9f3bafb89247ef20f9b911a3b9f49554d7d57b. Please download and report if the problem persists!