Forums Register Login

file uploading from user's computer

+Pie Number of slices to send: Send

hi all

i want to upload the file
i am using jsp
in one page i got the browse button to select the files to upload using <input type="file" name="filetoupload>
i got all the file names in the next page
using
String[] filenames=request.getParameterValues("filetoupload");
now how can i save this file to the server ?

i have the api JavaTM 2 Platform
Standard Ed. 5.0
[ October 15, 2005: Message edited by: Bear Bibeault ]
+Pie Number of slices to send: Send
"me my",

There aren't may rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
I AM MIGHTY! Especially when I hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 736 times.
Similar Threads
Struts 2 Fileupload problem
AJAX and php upload function.
over writing a file on server
getting null values for parameters
JSP / Servlet upload images
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:11:13.