Register symfony's mime guessers if they are supported

Created on 7 December 2014, almost 10 years ago
Updated 9 August 2024, 3 months ago

Problem/Motivation

Symfony providers two mime guessers FileinfoMimeTypeGuesser and FileBinaryMimeTypeGuesser which do a better and more secure job than ExtensionMimeTypeGuesser.

If either are supported we should add them to Drupal\Core\File\MimeType\MimeTypeGuesser with a preference for FileinfoMimeTypeGuesser.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->

Proposed resolution

Remaining tasks

<!-- See https://drupal.org/core-mentoring/novice-tasks for tips on identifying novice tasks. Delete or add "Novice" from the Novice? column in the table below as appropriate. Uncomment tasks as the issue advances. Update the Complete? column to indicate when they are done, and maybe reference the comment number where they were done. -->

User interface changes

API changes

Feature request
Status

Needs work

Version

11.0 🔥

Component
Base 

Last updated 9 minutes ago

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

Live updates comments and jobs are added and updated live.
  • Security

    It is used for security vulnerabilities which do not need a security advisory. For example, security issues in projects which do not have security advisory coverage, or forward-porting a change already disclosed in a security advisory. See Drupal’s security advisory policy for details. Be careful publicly disclosing security vulnerabilities! Use the “Report a security vulnerability” link in the project page’s sidebar. See how to report a security issue for details.

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.

  • 🇭🇺Hungary mxr576 Hungary

    Maybe it is time to get back to this issue after file handling related APIs have improved in core recently.

Production build 0.71.5 2024