react-images-uploading
react-images-uploading copied to clipboard
Accepted Type Svg
Although svg is not an element of accepted types array, those files can be selected.
Hi @mehmetakify, sorry for the too late reply. Not sure the scenario in you faced the issue, because I am not able to reproduce the bug. Can you add some more code blocks..?
Happened to me too. when defining "acceptType = ['png']" for some reason if I upload svg file, I don't get an error
Hi @vutoan266 it is simple code block like @ChenDimri said:
const ACCEPTED_IMAGE_TYPES = ["jpg", "png", "webp", "gif", "jfif", "bmp"]
<ImageUploading multiple value={images} onChange={onChange} maxNumber={maxNumber} acceptType={ACCEPTED_IMAGE_TYPES}
I can select svg files with this code