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

Uploader mime type checking needs to be more accurate #33

Open
dmayerdesign opened this issue May 12, 2020 · 0 comments
Open

Uploader mime type checking needs to be more accurate #33

dmayerdesign opened this issue May 12, 2020 · 0 comments

Comments

@dmayerdesign
Copy link
Contributor

Today we're relying on File#type which MDN says should not be relied on.

Looked into the file-type package and it seems promising.

Or, see this article for a package-less implementation: https://medium.com/the-everyday-developer/detect-file-mime-type-using-magic-numbers-and-javascript-16bc513d4e1e)

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

1 participant