2

I have a requirement where I need to open an FTP site in FileZilla from a webpage.

I have FileZilla installed on my machine and I have an access to the FTP. I will be creating a button in a HTML page, upon clicking it, it must open that particular FTP site using FileZilla.

How do I code this in HTML?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Goutham
  • 93
  • 1
  • 1
  • 4
  • Possible duplicate of [How to run an external program, e.g. notepad, using hyperlink?](http://stackoverflow.com/questions/2800081/how-to-run-an-external-program-e-g-notepad-using-hyperlink) – Steffen Ullrich Nov 24 '15 at 19:52
  • 1
    Make a standard hyperlink, but instead of using "http://...whatever", use "ftp://...link" – JD Davis Nov 24 '15 at 19:54
  • You can configure your Windows OS to handle the URLs in a specific way. Please take a look at this answer: https://superuser.com/questions/186563/associate-ftp-hyperlink-to-filezilla – JCM Mar 22 '17 at 09:24

1 Answers1

1

For a general discussion on running a local application from a webpage, see
How to run an external program, e.g. notepad, using hyperlink?
In short, you cannot.


An FTP client is a special case though, as you can reasonably expect that some application on the client machine handles the ftp:// URLs.

Note that by default web browsers register to handle the ftp://. So you always have a fallback.

But FileZilla does not register itself.

If you have a control over the client machines, you can register FileZilla yourself.

If not, you either accept the webbrowser fallback or rely on a user to have his/her preferred FTP client registered.

One of FTP clients that can register itself to handle the ftp:// URL is WinSCP. Though WinSCP does not register for the ftp:// specifically by default, as it deliberately leaves the default web browser registration untouched. A uses has to explicitly register the ftp:// in WinSCP integration preferences. But WinSCP registers its specific URL prefix, the winscp-ftp://.

(I'm the author of WinSCP)

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992