Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

File uploading using Servlet  RSS feed

 
Deepak Chawla
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how to do this.
Does anyone have a code of saving the file in server.
I have properties file called project which has server path and i can get projectname from my page. I have some documents related to that project, so if i hit save then other values should go into database and files should be saved in the directory structure.
plz help
 
Chris Hogg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out apache commons FileUpload.
link.http://jakarta.apache.org/commons/fileupload/
There are examples under the "using"
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak -
This question is asked many times here at the Ranch. Have a look at the search facility, you'll find a lot of solutions.
hope this helps
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!