Page 1 of 1

Start transfer via javascript?

Posted: Tue Nov 08, 2011 7:11 pm
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.

Re: Start transfer via javascript?

Posted: Sun Nov 13, 2011 12:52 pm
by support
startUpload() function is not available but it can be provided in a custom version.

Re: Start transfer via javascript?

Posted: Thu Nov 24, 2011 8:33 pm
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.)

Re: Start transfer via javascript?

Posted: Fri Nov 25, 2011 7:42 am
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.