[PHP-ES] tipo myme
by Fernando Viadero other posts by this author
Nov 21 2006 12:30AM messages near this date
[PHP-ES] ayuda con la generación de un fpdf
|
[PHP-ES] Procesar archivos XML
hola
está bien este codigo??
fotos es un array de ficheros subidos por post.. (tienen que ser imágenes)..
si son imagenes las proceso, sino no las proceso...
el caso es que alguno de mis usuarios tiene problemas.. (no le deja subir
jpg... por ejemplo..el cual me lo ha mandado por email y yo lo he subido
perfectamente..)
es el tipo myme case sensitive??? creo que no, no?
gracias
$tipo = $HTTP_POST_FILES["fotos"]["type"][$a];
$tipo = ( strstr($tipo, '; name') ) ? str_replace(strstr($tipo, ';
name'), '', $tipo) : $tipo; //some opera patch¿¿¿
if (
($tipo == "image/png") ||
($tipo == "image/jpeg") ||
($tipo == "image/jpg") ||
($tipo == "image/bmp") ||
($tipo == "image/gif")
)
{
//process.
}
else
{
//do nothing
}
--
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|