Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
file system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2007 at 14:05 UTC
Updated:
11 Sep 2008 at 21:09 UTC
Jump to comment: Most recent file
Comments
Comment #1
thepanz commentedIs there also a Bug report for Firefox that sends wrong MIME type for .pdf files here: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/84880
Comment #2
thepanz commentedI created a Patch for Drupal 5.2, needs work to get PECL FileInfo more stable with Lnux and Windows systems
Comment #3
thepanz commentedPatch for Drupal6-HEAD
Comment #4
drewish commentedthe patch needs work. it doesn't follow the Drupal coding standards
Comment #5
thepanz commentedI try to follow Drupal-conding standards, maybe I missed something, sorry..
I know that's not the cleanest way to accomplish mime-detecting, and I'd like to hear others suggestions..
Regards
Comment #6
Freso commentedI just made a re-roll of this as well as fixing some style issues. However,
cvs diffwon't work until #261454: CVS pserver down? is fixed, so... :/Comment #7
Freso commentedHere's the re-roll with various style fixes. Not tested.
Comment #8
treksler commentedhi
http://drupal.org/node/43220
was committed and closed and the comments clearly said .. mime checking was only removed until something better came along
well here it is
i will i give this approach a try
there is also http://drupal.org/project/mimedetect
that may have useful code in there for a patch to detect mime types
Comment #9
drewish commentedthis was addressed in the last security release #295053: SA-2008-047 - Drupal core - Multiple vulnerabilities