Closed winweb closed 9 years ago
I solved by change
if (file.type === type) {
to
if ('.'+extension === type) {
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
Thanks for your explain
I solved by change
if (file.type === type) {
to
if ('.'+extension === type) {