Allow exclusion of certain MIME types from validation

Created on 26 October 2020, over 3 years ago
Updated 29 November 2023, 7 months ago

Problem/Motivation

Hello,

This issue is related to "MimeDetect file upload validator" submodule: if for any reason the proper MIME type cannot be determined well (for example because of server configuration), this submodule can block the upload of certain files - even though the detected MIME type is not incorrect for this extension.
For example, .srt and .sub files are detected as , but expected MIME type is .

Steps to reproduce

Create a File field with allowed extension .srt and .sub, and upload a subtitle file downloaded from any website.

Proposed resolution

Add a module setting, which allows the validation to pass for a given (mime type, extension) pair, even if the determined mime type doesn't match it. Provide a simple back-office form.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡·πŸ‡ΈSerbia ivan.vujovic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024