FW: [PHP-DB] mime-type related to extension?

2005-04-27 Thread mel list_php
Hi I sent this on 21st of april and got no answer... there is no way to check the real mime type of a file? even a file without extension? thanks, melanie From: mel list_php [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] mime-type related to extension? Date: Thu, 21 Apr 2005 13:45

Re: [PHP-DB] mime-type related to extension?

2005-04-27 Thread Mark Cain
?extdetail=JPG you could also try http://www.jpeg.org/index.html Mark Cain - Original Message - From: mel list_php [EMAIL PROTECTED] To: php-db@lists.php.net Sent: Wednesday, April 27, 2005 4:03 AM Subject: FW: [PHP-DB] mime-type related to extension? Hi I sent this on 21st of april and got

Re: FW: [PHP-DB] mime-type related to extension?. .

2005-04-27 Thread Martin Norland
meal list_php wrote: Hi I sent this on 21st of april and got no answer... there is no way to check the real mime type of a file? even a file without extension? thanks, You can call out to an external program called file (which is pretty much guaranteed to be there, on a Linux system) which uses

Re: FW: [PHP-DB] mime-type related to extension?. .

2005-04-27 Thread Matthew Weier O'Phinney
* Martin Norland [EMAIL PROTECTED]: meal list_php wrote: Hi I sent this on 21st of april and got no answer... there is no way to check the real mime type of a file? even a file without extension? thanks, You can call out to an external program called file (which is pretty much

[PHP-DB] mime-type related to extension?

2005-04-21 Thread mel list_php
Hi guys! I have a basic form to upload files, my problem is about the mime type. I use $type= $_FILES[$file_uploaded]['type']; to check the mime-type of the fila as I want to allow only .jpeg. I have then a test like: if ($type==image/pjpeg || $type==image/jpeg) { ... } Upload working fine if I