defining location for input type file
I'm not sure this is the right forum to ask this question but this is what I'm trying to do:
I have a form with a input element, type file. What I want to happen when a user clicks the Browse button to go get a file is for the "Choose File" dialog to open to a specified location defined by the script. For instance:
<form...>
<input name="Pic" type="file" onClick="getPic()">
</form>
in head...
function getPic() {
myElement = document.form.Pic;
path = "ftp://ftpsite/pictures/";
myElement.value = path;
}
Is it possible to do this? If so, does anyone know how to achieve it?
thanx,
Bob
|