pekebyte / pekeUpload

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

If checking for extension and filesize, still returning true if one of them is true #11

Closed mwq27 closed 9 years ago

mwq27 commented 11 years ago

I have a check for filesize and a check for file extension. If 1 of those fails, and the other is true, your code still sets canUpload = true, meaning it still tries to upload the file.

pekebyte commented 9 years ago

Thanks for reporting that,

Actually after a long time, I decided to improve this script, when I did this, this was my first jQuery plugin, and I was a very javascript novice. I think that this new version has a lot of improvements.