RE: [PHP] File Types
| From: | Javier Tacon | Date: | Mon, 15 Sep 2003 13:29:09 +0000 |
| Subject: | RE: [PHP] File Types | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162626@lists.php.net to get a copy of this message | ||
You could use the function exif_imagetype() to see what type of file has been uploaded.
http://es.php.net/manual/en/function.exif-imagetype.php
-----Mensaje original-----
De: Ed Curtis [mailto:ed@homes2see.com]
Enviado el: lunes, 15 de septiembre de 2003 15:02
Para: php-general@lists.php.net
Asunto: [PHP] File Types
Importancia: Baja
I currently limit file types in an upload script by using an allowed
types array
$allowed_types = array("image/jpeg", "image/gif");
I also need to allow files of with the following extentions.
.tif, .pm7, .p65, .pdf, .qxp, .pmd, .eps
Is there a site out there anywhere that gives the mime types of theses
files?
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php