Skip to content
New issue

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

unable to specify data-fp-mimetypes="image/svg+xml" #40

Open
stephenmathieson opened this issue Jul 15, 2016 · 2 comments
Open

unable to specify data-fp-mimetypes="image/svg+xml" #40

stephenmathieson opened this issue Jul 15, 2016 · 2 comments

Comments

@stephenmathieson
Copy link

want to only allow svg uploads, but setting that mimetype doesn't work:

screen shot 2016-07-15 at 10 49 20

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
}
@szwacz
Copy link
Contributor

szwacz commented Jul 18, 2016

Indeed it'a a bug. As quick fix data-fp-extension=".svg" does the job.

@stephenmathieson
Copy link
Author

awesome, thanks @szwacz! works perfectly!

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

No branches or pull requests

2 participants