[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general-es
Subject:    [PHP-ES] tipo myme
From:       "Fernando Viadero" <listas () stator ! net>
Date:       2006-11-21 8:30:25
Message-ID: 004b01c70d47$4ad99100$3300000a () fernando
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic