note 39042 deleted from function.mime-content-type by nlopess

From: Date: Thu, 15 Jan 2004 14:35:44 +0000
Subject: note 39042 deleted from function.mime-content-type by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63614@lists.php.net to get a copy of this message
Note Submitter: jalonso@art3mis.com ---- To: arend at auton dot nl "First it will try to determine the mimetype using globbing rules (purely based on the filename and extension)." So, if a user mistakenly renames a bmp file as jpg and uploads it your php script would return jpg? Note on some previous note I read elsewhere that you must use apache mime file because it won't work with others. In php5 this is not true anymore. At least with debian's magic file. NOTE: It seems this function will always return text/plain if mime_magic.debug has not been set to "On".

« previous php.notes (#63614) next »