pekebyte / pekeUpload

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

Image keeps adding themself when some other field in document changed #36

Open perkthefox opened 6 years ago

perkthefox commented 6 years ago

Solution: Replace $(document).on("change", this.obj.selector, function() { pekeUpload.checkFile(pekeUpload.obj[0].files[0]); });

With $(document).on("change", '#div-block-where-upload-form-is', function() { pekeUpload.checkFile(pekeUpload.obj[0].files[0]); });

oguzhanozcelik commented 4 years ago

@perkthefox thanks man!