This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Upload all the files in the directory to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Upload all the files in the directory to server" Watch "Upload all the files in the directory to server" New topic
Author

Upload all the files in the directory to server

naveen chedella
Greenhorn

Joined: Dec 05, 2008
Posts: 8
Is there any way of uploading all the files in a directory to the server? For my requirement,user enters the directory name from the browser and i need to upload all the files to server and than process all the files.I am using struts1.1 . FormFile uploads only one file and i want to upload all the files from the directory.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9435
    
  20

You'll have to use special tools to be able to upload multiple files from a browser. There are a few flash and applet based solutions available which you can use to upload multiple files or a folder. Search on google a little...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload all the files in the directory to server
 
It's not a secret anymore!