vue-upload-drop-images
vue-upload-drop-images copied to clipboard
How to prevent other type of file upload
I want to prevent to upload other types of file. but its uploading all types of file .
hello @iftekharul-dev,
It's already accepting just the files of type image as you see here: https://github.com/yudax42/vue-upload-drop-images/blob/c1e6837560b7075cc99a55cadc460769cc687f74/dist/vue-upload-drop-images.vue#L123
Please explain more your issue so I can help you.
Thank you!
Yes, i saw that, but its accept all files.Also not working on your demo https://vueupload.yudax.dev/ :( ..
Can you please tell me which browser are you using?
Currently, it's using just accept
input which works only on this list of browsers:
- Chrome 16 +
- Safari 6 +
- Firefox 9 +
- IE 10 +
- Opera 11 +
I will try to validate the input files using javascript in the future.
Its Chrome 16 +
Interesting, on Firefox 9+ it does the same. @iftekharul-dev I suggest just adding validation to handle this until @yudax42 finds something.
Can this be open for one to set what images they accept other than accepting all image types.