Improve MIME type handling on File Upload and in Message Component (#688)
authorJames <thumbscrw@pm.me>
Sun, 14 Aug 2022 11:01:17 +0000 (12:01 +0100)
committerGitHub <noreply@github.com>
Sun, 14 Aug 2022 11:01:17 +0000 (16:31 +0530)
commita417980a81c1b0ec97a0891e11b5b893c9dcce55
tree10abe9fee1e618ea73bda0bb7b6cc989605f30bc
parentaf6995580179275f8969a6fec4f8ccc37bcc2a17
Improve MIME type handling on File Upload and in Message Component (#688)

* move allowed MIME types to own util file

* add check for safe MIME type before choosing how to upload

* check for allowed blob type to decide what component to load

* re-add check for safe mimetype

* fix bracket positioning
src/app/molecules/media/Media.jsx
src/app/molecules/message/Message.jsx
src/client/state/RoomsInput.js
src/util/mimetypes.js [new file with mode: 0644]