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:[EMAIL PROTECTED] Enviado el: lunes, 15 de septiembre de 2003 15:02 Para: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php