Ver Mensaje Individual
  #9 (permalink)  
Antiguo 24/07/2007, 13:04
MarcoAntoine
 
Fecha de Ingreso: septiembre-2006
Mensajes: 29
Antigüedad: 17 años, 7 meses
Puntos: 0
Re: Error al subir imagen..... :-(

Cita:
Iniciado por Nantcy Ver Mensaje
Código PHP:
if (is_uploaded_file($_FILES['userfile']['tmp_name'])) 
   {
    
// REVISAR QUE SEA JPG o GIF
    
if ($_FILES['userfile']['type'] == "userfile/jpeg" || $_FILES['userfile']['type'] == "userfile/pjpeg" || $_FILES['userfile']['type'] == "userfile/gif")
       {
//...
    
}
     else 
      {
       echo 
"Error al cargar imagen: " $_FILES['userfile']['name'];
      } 
?> 
Hola, me parece que tu problema está al verificar si es o no imagen. Creo que el tipo es "image/jpeg" o "image/pjpeg" o "image/gif".

Verificalo y nos cuentas,

Saludos!