Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Accepted Type Svg #118

Open
mehmetakify opened this issue Feb 8, 2022 · 3 comments
Open

Accepted Type Svg #118

mehmetakify opened this issue Feb 8, 2022 · 3 comments

Comments

@mehmetakify
Copy link

Although svg is not an element of accepted types array, those files can be selected.

@vutoan266
Copy link
Owner

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..?

@ChenDimri
Copy link

Happened to me too. when defining "acceptType = ['png']" for some reason if I upload svg file, I don't get an error

@mehmetakify
Copy link
Author

mehmetakify commented Jul 28, 2022

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants