• Post Reply Bookmark Topic Watch Topic
  • New Topic

file uploading from user's computer  RSS feed

 
me my
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!