This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes FTP Downloads Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "FTP Downloads" Watch "FTP Downloads" New topic
Author

FTP Downloads

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 334
I'd like to put on-click ftp download into a web page. I've been trying to do it by putting a normal anchor with ftp. and ftp:// in the href address. I've never done this before, so I don't actually know whether that's supposed to work, but it hasn't so far. Well ... I tried it with an audio file, and on one attempt, I got a bunch of strange text in the page. I did get some response in the ftp server log when I included username and password .. once even got login window.

Part of the background ... I've also not been able to use username:password@host in the browser or Explorer. Perhaps the problem is in the ftp server set-up.

I guess all I want to accomplish with this post, is to find out whether a simple link in a web page (within the context of my http server) should work, and to get the syntax right. If I know that, I can eliminate it as a problem .. and focus on the ftp server set up.
[ April 24, 2007: Message edited by: Roger F. Gay ]

Correlation does not prove causality.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56150
    
  13

I make any downloadable files available from http and avoid the whole ftp mess.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 334
I've had some bad luck with very large files ... slow, incomplete, and corrupt. That's why I started using ftp.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FTP Downloads
 
Similar Threads
Eclipse and FTP
FTP via web application
Web Service SSL Client
Get File from FTP Server with passive access
IBM HttpServer and websphere Appserver