Only support specific content types
Open
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
We should only allow uploading...
```js
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
Contributor guide
Assessment
This issue has not been assessed yet.