Skip to content

Do not allow files to be uploaded with file types we do not support#442

Open
whpearson wants to merge 1 commit into
mainfrom
do_not_allow_upload_of_not_allowed_mimetypes
Open

Do not allow files to be uploaded with file types we do not support#442
whpearson wants to merge 1 commit into
mainfrom
do_not_allow_upload_of_not_allowed_mimetypes

Conversation

@whpearson

Copy link
Copy Markdown
Contributor

This checks the mime type with libmagic and stops it if it is mimetype we don't
support.

This is to prevent people uploading potentially malicious files.

Other work has been done to stop people uploading empty files (which show up as a mimetype mismatch too).

This checks the mime type with libmagic and stops it if it is mimetype we don't
 support.

This is to prevent people uploading potentially malicious files.

Other work has been done to stop people uploading empty files (which show up
as a mimetype mismatch too).
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

Successfully merging this pull request may close these issues.

2 participants