Module Description
Sophron of Syracuse (Greek: Σώφρων ὁ Συρακούσιος, fl. 430 BC) was a writer of mimes. (Wikipedia)

Sophron of Drupal is a module to enhance MIME type management, based on the FileEye/MimeMap library.

Features

* Enhances Drupal's MIME type detection based on file extension to recognise 1200+ MIME types from 1600+ file extensions (vs Drupal's 360 MIME types and 475 file extensions).
* Provides an extensive MIME type management API through FileEye/MimeMap.
* Optionally replaces Drupal's core MIME type extension-based guesser.

Override Drupal core MIME type guessing
The Sophron module by itself just provides a service and an API for MIME type management. You can enable the complimentary Sophron guesser module to let Sophron manage the MIME type guessing, overriding Drupal core's guesser.

NOTE: The Sophron guesser module does not invoke the hook_file_mimetype_mapping_alter hook to allow altering the mapping of MIME types to file extensions. If you need to modify mappings, use the Sophron configuration UI to replicate any mapping changes. Alternatively, modules can implement event subscribers that react to a Drupal\sophron\Event\MapEvent::INIT event that is fired when a map is initialised, and make the necessary changes to the mappings.

Project Usage
24703
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
Sophron of Drupal is a module designed to enhance MIME type management by recognizing over 1200 MIME types from 1600 file extensions, providing an extensive API for MIME type management, and optionally replacing Drupal's core MIME type extension-based guesser.
Data Name
sophron

OPENAI CHATBOT

OPENAI CHATBOT

14:31:08
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.