Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/04/2014, 09:31
Avatar de reborn
reborn
 
Fecha de Ingreso: febrero-2010
Mensajes: 440
Antigüedad: 14 años, 2 meses
Puntos: 1
Respuesta: Upload de archivos: Cómo "ignorar" un índice vacío de un array?

Si, era tan sencillo...

Modifique esta linea:
Código PHP:
Ver original
  1. if(!empty($file['name'])){ ....

Por esta otra:
Código PHP:
Ver original
  1. if($file['error'] != 4 && $file['name'] != ''){

Gracias