Register symfony's mime guessers if they are supported

Created on 7 December 2014, over 10 years ago
Updated 9 August 2024, 11 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 about 5 hours 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.

Production build 0.71.5 2024