JS Cancel Upload call

Upload core product.
Post Reply
sdthomas
Posts: 14
Joined: Wed Jan 20, 2010 5:13 am

JS Cancel Upload call

Post 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

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

Re: JS Cancel Upload call

Post 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.

sdthomas
Posts: 14
Joined: Wed Jan 20, 2010 5:13 am

Re: JS Cancel Upload call

Post 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

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

Re: JS Cancel Upload call

Post 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.

Post Reply