![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/06/2005, 20:51
|
| | Fecha de Ingreso: junio-2005
Mensajes: 9
Antigüedad: 19 años, 8 meses Puntos: 0 | |
<form enctype="multipart/form-data" action="upload_file.php" method="post">
<p>
<input type="hidden" name="max_lenght_file" value="2">
<br>
Archivo:
<input name:"archivo_usuario" type="file">
</p>
<p>
<input type="submit" value="Upload" name="enviar">
</p>
</form>
ese es el html
<?
$directorio = '\\Downloads\\';
if (move_uploaded_file($_FILES['archivo_usuario']['tmp_name'], $directorio . $_FILES['archivo_usuario']['name']))
{
echo ' upload exitoso ';
} else { echo ' upload error '; }
?>
el codigo en php
cuando lo pruebo me sale
"upload error" |