We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data-fp-mimetypes="image/svg+xml"
want to only allow svg uploads, but setting that mimetype doesn't work:
instead i'm doing this, which feels a little jank:
// ... const { url, mimetype } = blob const isSVG = mimetype === 'image/svg+xml' if (!isSVG) { // error } else { // handle upload }
The text was updated successfully, but these errors were encountered:
Indeed it'a a bug. As quick fix data-fp-extension=".svg" does the job.
data-fp-extension=".svg"
Sorry, something went wrong.
awesome, thanks @szwacz! works perfectly!
No branches or pull requests
want to only allow svg uploads, but setting that mimetype doesn't work:
instead i'm doing this, which feels a little jank:
The text was updated successfully, but these errors were encountered: