README.txt in File MIME 8
Same filename and directory in other branches
FILE MIME MODULE ---------------- Drupal determines the MIME type of each uploaded file by applying a MIME type mapping to the file name. The default mapping is hard-coded in the ExtensionMimeTypeGuesser class: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21File%21MimeType%21ExtensionMimeTypeGuesser.php/property/ExtensionMimeTypeGuesser%3A%3AdefaultMapping/8 This module allows site administrators to alter the built-in mapping. For example, you may wish to serve FLAC files as audio/flac rather than application/x-flac. Custom mappings can be extracted from the server's mime.types file (often available on a path such as /etc/mime.types) and/or a site-specific mapping string, both of which must use the standard syntax for mime.types files. For example: audio/mpeg mpga mpega mp2 mp3 m4a audio/mpegurl m3u audio/ogg oga ogg opus spx After installing and enabling this module, the MIME type mapping can be configured by visiting Administration > Configuration > Media > File MIME (admin/config/media/filemime). Use the Apply tab (admin/config/media/filemime/apply) to apply the configured MIME type mapping retroactively to all previously uploaded files. Disabling this module will restore Drupal's built-in MIME type mapping.
File
README.txtView source
-
- FILE MIME MODULE
- ----------------
-
- Drupal determines the MIME type of each uploaded file by applying a MIME
- type mapping to the file name. The default mapping is hard-coded in the
- ExtensionMimeTypeGuesser class:
- https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21File%21MimeType%21ExtensionMimeTypeGuesser.php/property/ExtensionMimeTypeGuesser%3A%3AdefaultMapping/8
-
- This module allows site administrators to alter the built-in mapping.
- For example, you may wish to serve FLAC files as audio/flac rather than
- application/x-flac.
-
- Custom mappings can be extracted from the server's mime.types file
- (often available on a path such as /etc/mime.types) and/or a
- site-specific mapping string, both of which must use the standard syntax
- for mime.types files. For example:
-
- audio/mpeg mpga mpega mp2 mp3 m4a
- audio/mpegurl m3u
- audio/ogg oga ogg opus spx
-
- After installing and enabling this module, the MIME type mapping can be
- configured by visiting Administration > Configuration > Media > File
- MIME (admin/config/media/filemime). Use the Apply tab
- (admin/config/media/filemime/apply) to apply the configured MIME type
- mapping retroactively to all previously uploaded files.
-
- Disabling this module will restore Drupal's built-in MIME type mapping.