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
?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
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
* 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
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