Does a Javascriptable FTP Upload Java/Flash Applet

2020-03-03 05:41发布

问题:

To be able to upload large files from a HTML page to a FTP server, I am looking for a Java/Flash FTP upload applet.

I really like the way dhtmlxVault works, but I need it to upload to a FTP server instead of a HTTP file upload.

It would be really nice if the applet has no GUI of it's own, but instead is fully scriptable using Javascript so I can use HTML/CSS for it's appearance.

I hopefully looked into Yahoo!'s YUI Uploader since it requires Flash, but the documentation only mentions HTTP upload and no FTP upload.

回答1:

This is exactly what IntegralFTP is - a Java applet wrapped by Javascript. The GUI is all implemented in Javascript, and so you can change it how you like.

It supports SFTP, FTP and FTPS.

You can use IntegralFTP from http://www.integralftp.com, or purchase from here.



回答2:

I tried the ZUpload Java applet.

Pro's:

  • The user interface works as easy as I could hope it to work.
  • It is a Java applet with it's own GUI, but I was able to implement some Javascript callbacks in it to update progress information in HTML. I would be able to minimize the GUI further.

Con's:

  • When an upload failes (when the FTP server tells it it is to busy, please retry in a moment) it thinks the upload succeeded and goes on with the next file. I tried to catch the exceptions but was unable to do so because of either the way j-ftp is used in the applet or my own lack of knowledge.
  • The project seems to be dead since 2003, so I don't expect any updates.

So my conclusion it that it is not ready to be used in a production environment. I still need a better solution.



回答3:

Technically, any swing app would work with only small modifications if you have access to the code. If your ready to offer an applet, maybe you could even use java web start (would require even less changes).



回答4:

What about this one (seems to be opensource)? http://jupload.sourceforge.net/applet-basic-picture.html