Start transfer via javascript?

All others add-ons (Secure FTP, SCP, Flickr, scripts ...).

Start transfer via javascript?

Postby hauky » Tue Nov 08, 2011 7:11 pm

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.
hauky
 
Posts: 6
Joined: Tue Nov 08, 2011 7:09 pm

Re: Start transfer via javascript?

Postby support » Sun Nov 13, 2011 12:52 pm

startUpload() function is not available but it can be provided in a custom version.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Start transfer via javascript?

Postby vlad » Thu Nov 24, 2011 8:33 pm

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.)
vlad
 
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Start transfer via javascript?

Postby support » Fri Nov 25, 2011 7:42 am

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.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm


Return to Others



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.