Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2007 at 22:24 UTC
Updated:
26 May 2010 at 00:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
dopry commentedOpps... forgot a default mime setting should everything fail...
Comment #2
dopry commentedOpps... forgot a default mime setting should everything fail...
Comment #3
jpetso commentedLooks good from a coding point of view, however I guess I should test it on my systems before urging you to commit :)
Ogg will be difficult if you can't determine its exact type by mimetypes, as the extension is usually .ogg for both audio and video... but that's not something that should keep this patch from being included.
Comment #4
jpetso commentedAdditional note: it might be worth a try to get this into Drupal 7, would be great to have more reliable mimetype detection all over the place.
Comment #5
dopry commentedI added a dependency on mimedetect and use it instead.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
gaellafond commentedJust in case someone else still have that problem:
There is an improved MimeType detection on the new version of the FileField module so this patch is no longer required. If you want to enable the MimeType detection, you have to install and enable the MimeDetect module:
http://drupal.org/project/mimedetect
You don't need any configuration, FileField will automatically use the module when it is enabled.
NOTE: This is useful to avoid malicious file to be upload by changing the file extension (like virus.exe uploaded after renaming it to virus.exe.gif).