![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/12/2009, 20:39
|
![Avatar de SirDuque](http://static.forosdelweb.com/customavatars/avatar288083_2.gif) | | | Fecha de Ingreso: febrero-2009 Ubicación: Paso del Rey, Buenos Aires, Argentina
Mensajes: 975
Antigüedad: 16 años Puntos: 89 | |
Respuesta: Upload dudas Cita:
Iniciado por Vitesse92 yo ocupo este codigo: espero y te sirva... ( ya que no ocupo copy...) Código PHP: $nombre=$_FILES['fichero']['name'];
if(empty($_POST['submit'])){
if(move_uploaded_file($_FILES['fichero']['tmp_name'], "fotos/".$_FILES['fichero']['name'])){
echo "Datos: <br />";
echo $_FILES['fichero']['name']. "<br />";
echo "PROCESO EXITOSO";
}else{echo "ERROR EN ALGUN PUNTO DEL PROCESO";}
}
?>
mi codigo html para eso es: Código HTML:
Imprime:
<form action="prueba.php" method="post" enctype="multipart/form-data">
<label>Foto</label>
<input type="file" name="fichero" /><br />
<input type="submit" value="submit"></input>
</form> Mi script es mas grande , lo edite en 30 seg..xD cualquier error, ofrezco disculpas ERROR EN ALGUN PUNTO DEL PROCESO
Na mentira no lo provee |