Page 1 of 1

JS Cancel Upload call

Posted: Tue Jan 26, 2010 9:56 am
by sdthomas
Is it possible to cancel/abort the upload process via Javascript eg from the JSAPI function JSTransferStarted() if we decide the filesize is too big could we call something like document.fileupload.cancel();

Also is there a list of all public accessible methods that can be called from javascript ie document.fileupload.methodName()

Many Thanks
Simon

Re: JS Cancel Upload call

Posted: Tue Jan 26, 2010 7:49 pm
by support
Methods are in JSAPI and at then end of the FAQ:
http://www.jfileupload.com/products/jfi ... aq.html#49

cancel() is not available but it's something we could add.

Re: JS Cancel Upload call

Posted: Thu Jan 28, 2010 7:30 pm
by sdthomas
Ok Thanks,

Any idea if and when this might be implmented?
Just would be useful to have some js control of the app other than the callbacks to start/stop/pause the applet.

Many Thanks
Simon

Re: JS Cancel Upload call

Posted: Thu Jan 28, 2010 8:03 pm
by support
cancel() could be added to official release but start() might be a problem because some upload could start without any user's confirmation. It could be a security hole. So start() would only possible in a custom release.