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 Upload using com.oreilly  RSS feed

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
cannot specify directory where uploaded files should be stored in MultipartRequest.class. i m using com.oreilly components on my server.
pls help
thnx in advance

------------------
 
David Bejjam
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
com.oreilly.servlet.MultipartRequest up = new com.oreilly.servlet.MultipartRequest(request, "c:/product/recruiter/images_logo");
String icode = up.getParameter("icode");
String image = up.getFilesystemName("mptest");
Hope the above sample will be helpfull.
 
mocca az
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jspSmart.com has file upload which i find much easier to work with.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!