pekeUpload
pekeUpload copied to clipboard
Image keeps adding themself when some other field in document changed
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]); });
@perkthefox thanks man!