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

Only support specific content types #3

Open
auniverseaway opened this issue Jan 13, 2024 · 0 comments
Open

Only support specific content types #3

auniverseaway opened this issue Jan 13, 2024 · 0 comments

Comments

@auniverseaway
Copy link
Member

We should only allow uploading...

export const SUPPORTED_TYPES = [
  'text/html',
  'application/json',
  'application/pdf',
  'image/jpeg',
  'image/gif',
  'image/png',
  'image/svg+xml',
  'video/mp4',
];

Keep the list short. Start small. Iterate.

References

https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types

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