Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/09/2010, 11:43
nx00
 
Fecha de Ingreso: agosto-2007
Mensajes: 345
Antigüedad: 16 años, 8 meses
Puntos: 21
Respuesta: hay forma de saber url actual de navegacion sistema de archivos??

Hola,

he intentado guardar la url con javascript, pero al parecer no es posible. Solo se puede obtener el nombre del archivo seleccionado.

El código de la prueba es el siguiente:

Código PHP:
<html>
<
head>
<
title>prueba</title>
<
script>

function 
getUrlInputFile()
{
    var 
inputFile;

    
inputFile document.getElementById("inputFile");

    
alert(inputFile.value);
}

</script>
</head>
<body>
<form method="post" action="pagina.php" enctype="multipart form-data">
<input type="file" name="inputFile" id="inputFile" onchange="getUrlInputFile()" />
</form>
</body>
</html> 
__________________
----
http://www.mascodigo.com