Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload a file to a Destination Folder

Status
Not open for further replies.

Khanjan

Programmer
Feb 24, 2004
41
0
0
NL
Hi,

I want to upload a file to my server, it works very well.
But i use HardCoded Path like ("c:\\temp\\file\\").

I want to know how to set the path for saving like any other programm. Like Office Word, where you can save a file by chosing a Destination.

What will be changes that i have to bring in my html form code and what are changes that i have to bring in JSP code???

I use only JSP no servlet or bean.

thanx in advance

 
Hi, agian,

Does anyone knows anything about my problems?

Please help,
 
Do you wish for the client to be able to browse the server's file system path, or just enter a path in a text field ?
 
well, just enter a path in a text field is enough.
 
just add an html tag to the form :

<form action="whatever">
<input type="file">
<input type="text" name="filename">
</form>

and retrieve it using :

request.getParameter("filename")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top