Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/01/2008, 15:16
okram
Invitado
 
Mensajes: n/a
Puntos:
Re: Subir archivos

Te devuelve algún error?

Prueba agregando condiciones else a cada if que tienes. Asi sabremos que puede estar fallando

Código PHP:
if (is_uploaded_file($HTTP_POST_FILES['archivo']['tmp_name'])) { 

    if(
$HTTP_POST_FILES['archivo']['size'] < 300000) { 

        if(
$_FILES['archivo']['type']=="image/gif" || $_FILES['archivo']['type']=="image/jpeg" || $_FILES['archivo']['type']=="image/png") { 

            
$info pathinfo($_FILES['archivo']['name']); 
            
$nnombre substr(md5(uniqid(rand())),0,10).".".strtolower($info['extension']); 
            
$destino =  "".$nnombre
            
copy($_FILES['archivo']['tmp_name'], $destino); 

            
$subio true
        } else {
            echo 
"algo";
        }
    }  else {
        echo 
"algo 2";
    }
} else {
    echo 
"algo 3";

Un saludo,