Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Downloads
Download mimedetect-5.x-1.0.tar.gztar.gz
265.98 KB
MD5: 6500b5aa76d8aaa393f079a17d0369c7
SHA-1: 49d7f84ca070252ea14a2b4331cf38f00d3d1a68
SHA-256: a20faad5ac888f17d733e3f23d33c737ada415a96f38f9aac5ebb65ab3d94037
Download mimedetect-5.x-1.0.zipzip
273.42 KB
MD5: 6d2cea5640d357e1f325f75b46b5a8c9
SHA-1: 4fe5f3d24b0e80151873db4207e56113b074c391
SHA-256: 7c757b05ced31a758f3a4ba6a9f905a9bf1745c9b4cfe136c70bcbae7a4cd089
Release notes
Changes since DRUPAL-5--1-0-beta: Module review, resulting mostly in style improvements, but also some "real" changes
- Use the 'mimedetect_file_binary' variable instead of 'filefield_file_binary'.
- Use a $t() instead of t() in the requirements function.
- Merge the last two mime type checks.
- Move the declaration of the $mime variable further down for better readability, and remove an unnecessary check on !$mime.
- Add the mime type for png, and fix ico and rgb (was 'rbg' before).
- Tune user visible strings for sounding "official" and consistent casing.
- Remove trailing spaces.
- strip charsets from text mime types returned by the UNIX 'file' command.