Just to clarify - I want the end user to initiate the transfer of the local
file to the web server. It's just that the filename is cyrptic and long, and
the end user wouldn't have a clue about how to find it. I suppose I could
post the name of the local file on form, and then ask the user to cut and
past the filename into the upload dialogue box. I was hoping someone would
have a more elegant solution.
Thx,
Peter
"Marina" <so*****@nospam.com> wrote in message
news:eT**************@TK2MSFTNGP15.phx.gbl...
There is no way to do this. It would be a major security flaw, if web apps
could upload files at will. The user has to be the one to select the file.
"Peter White" <pe***@vocada.com> wrote in message
news:Hf*******************@newssvr24.news.prodigy. com... I am trying to transfer a file from a user's local machine (the file is
automatically created by a 3rd party tool and stored in the users local
settings/temp directory) via a web form to my web server. I am using Visual Studio.Net 2003 and running IIS 5.0. There is no need to use the
input=file html control b/c the user has no idea the name of the temporary file
that I need to capture and store on the server. I believe the "value" property on the input=file control is disabled in IE. My server side code knows
the name and location of the local file, I just want to add a "Save"
function to my web from that transfers this file to the web server.
Thanks,
Peter