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.
The file_download() hook tries to determine a file's mimetype by using the php function mime_content_type(), which isn't always available. Since an IMCE upload does put mimetype data in the "files" table, IMCE should first try to read that data and set the content-type appropriately.
Included is a patch to perform this extra check.
Comment | File | Size | Author |
---|---|---|---|
#2 | imce.module.patch | 1.1 KB | ufku |
imce.module.patch | 949 bytes | artifice | |
Comments
Comment #1
artifice CreditAttribution: artifice commentedNote, the patch hard-codes the site "default". This will need to be improved to determine the appropriate file location.
Comment #2
ufku CreditAttribution: ufku commentedthanks for pointing this out.
the patch waits for your review.
Comment #3
ufku CreditAttribution: ufku commentedtested. committed.
please update in case of any problems.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.