Start transfer via javascript?

All others add-ons (Secure FTP, SCP, Flickr, scripts ...).
Post Reply
hauky
Posts: 6
Joined: Tue Nov 08, 2011 7:09 pm

Start transfer via javascript?

Post by hauky »

Is there a way to start the transfer with a Javascript call? My goal is to validate the form fields on the page before starting the transfer. I'm able to hook into the TransferTriggered callback and then cancelTransfer() if it's not valid, but that's not very clean, and also the status says "Upload complete (0 files)" instead of "Upload canceled", which is unclear for the user.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Start transfer via javascript?

Post by support »

startUpload() function is not available but it can be provided in a custom version.

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Start transfer via javascript?

Post by vlad »

Feature request: ability of controlling the applet directly via JavaScript, with no Java applet visible to the user.
It's no secret that Java applets look awful and inconsistent across platforms. This would allow us to make pretty user interfaces using HTML, CSS, images. (Most browsers have HTML5 support with drag&drop, so passing the dropped paths to the hidden applet would not be a problem.)

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Start transfer via javascript?

Post by support »

You can implement it but as custom version because starting transfer silently could be a security hole. A malicious use could hide applet and steal some files on end-user desktop.

Post Reply