Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/05/2010, 20:51
iovan
 
Fecha de Ingreso: septiembre-2007
Ubicación: PyRoot
Mensajes: 1.515
Antigüedad: 16 años, 7 meses
Puntos: 188
Respuesta: Subir un fichero

Hola amigo, has de usar PHP para poder realizar eso.

un ejemplo

subir.php
Código PHP:
Ver original
  1. $ruta= $_FILES['carga']['tmp_name'];
  2. $destino = "home/user/public_html/carpeta/".$_FILES['carga']['name'];
  3.  
  4.  
  5. if(isset($_POST['subir'])){
  6.  
  7.       if( copy($ruta,$destino)){ echo "Se ha subido el archivo"; } else { echo "No se ha subido el archivo"; }
  8. }


formulario.html
Código HTML:
Ver original
  1. <form action="subir.php" method"post" enctype="multipart/form-data">
  2. <input type="file" name="carga"/>
  3. <input type="submit" name="Subir"/>
  4. </form>

Saludos
__________________
Si quieres agradecer el triangulo obscuro de la parte derecha debes presionar +.