jaysalvat / ezdz

A jQuery plugin to turn any standard input type file into a nice drag & drop zone with validators and previews.
MIT License
89 stars 36 forks source link

Cannot check the accepted Mime-Types from the input file #7

Closed winweb closed 9 years ago

winweb commented 9 years ago

I solved by change

if (file.type === type) {

to

if ('.'+extension === type) {

jaysalvat commented 9 years ago

Hello.

The type of the file was checked. Not the extension.

accept="image/png"

I've just added the extension check as well.

accept="image/png, .jpg"

Thanks

winweb commented 9 years ago

Thanks for your explain