Ver Mensaje Individual
  #10 (permalink)  
Antiguo 25/07/2007, 17:46
Nantcy
 
Fecha de Ingreso: marzo-2007
Mensajes: 163
Antigüedad: 17 años, 1 mes
Puntos: 0
Pregunta Re: Error al subir imagen..... :-(

Muchas gracias a todos por su ayuda, ya pude solucionarlo, lo que estaba mal era esta parte:

Código PHP:
    if ($_FILES['userfile']['type'] == "userfile/jpeg" || $_FILES['userfile']['type'] == "userfile/pjpeg" || $_FILES['userfile']['type'] == "userfile/gif"
y me aconsejaron hacer la comparacion de esta foma:
Código PHP:
    if ($_FILES['userfile']['type'] == "image/jpeg" || $_FILES['userfile']['type'] == "image/pjpeg" || $_FILES['userfile']['type'] == "image/gif"
En lugar de poner =="userfile/gif" poner ==="image/gif", a todas.