• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Batch files or java program for uploading folder

 
deepthi kaja
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need to upload folder(contains files) from my jsp,my current jsp is able to upload one single file to database(in database the uploaded singlefile stored as one row,for next file next row will be created...so on).now i need to upload folder that contain single or more files and database shd be able to store multiple files .Any one have any idea to aproach this,I will appreciate your response.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm assuming you want to do this in an applet, since you posted in the Applets forum? (HTML forms can't upload directories full of files anyway.)

To do this in an applet, it will have to be signed, since otherwise applets have no access to the local file system. That's explained in HowCanAnAppletReadFilesOnTheLocalFileSystem

The http://faq.javaranch.com/java/FileUpload page explains how to do the upload; the applet would use the HttpClient library to do this.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic