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

import: validate mime types #160

Open
targos opened this issue Oct 5, 2018 · 2 comments
Open

import: validate mime types #160

targos opened this issue Oct 5, 2018 · 2 comments

Comments

@targos
Copy link
Member

targos commented Oct 5, 2018

We can use https://www.npmjs.com/package/mime-types

@stropitek
Copy link
Contributor

If we do this we will have to extend it with our custom mime types.

I don't think jcamp files are in the specification so they won't be in the library by default

@targos
Copy link
Member Author

targos commented Oct 5, 2018

Definitely. We need to make sure it works with custom mime types. I'd like at least to verify that the string has the correct syntax.

maybe we should use https://www.npmjs.com/package/mime

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