This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I FTP files form my html form using "input type=file" through jsp/servlet

 
saurabh shekhar
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using orilly MultipartRequest to upload files from cliemt to server.But it is very slow . Is there any way of FTPing files from client to server?.

Thanks
Saurabh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.

I've never seen a speed difference between using multipart uploads and uploading with a regular ftp client. You might just have a slow upload rate from your internet provider.
 
PRASHANT HEGU
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are different package are availble to upload file from client machine to server. if using jsp then refer jsp smartupload lib, if using servelt then try for apache.common under that some fileupload utility is availble.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The library you use doen't matter. They're all on the server.
The browser is what does the upload.
Your connection is going to be the biggest determining factor.
[ May 01, 2005: Message edited by: Ben Souther ]
 
saurabh shekhar
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel ftp must be faster compared to http. I am using MultipartRequest to upload a 100MB file which is taking hours of time to upload. But if I use a FTP client(WS_FTP) to upload , it is just taking a few minutes. Do you know , how to use FTP from servlet/jsp ? Also do I need to have a FTP server if I am uploading through FTP ?

Thanks
Saurabh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would need an FTP server.
You would also need an FTP client because browsers do not allow webapps to access the local file system except via the <input type="file".. control.

I don't think there is an easy way to use FTP from a servlet app.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic