View Single Post
  #1 (permalink)  
Old August 18th, 2004, 07:07 PM
bleitner bleitner is offline
Authorized User
Join Date: Nov 2003
Location: Phoenix, AZ, USA.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default define location for file input tag

I asked this question in the other forum but didn't get any replies so I figured I'll try here. 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:

<input name="Pic" type="file" onClick="getPic()">

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?


Reply With Quote