PDA

View Full Version : Cancel file upload



ajeetsingh85
15 Jan 2013, 5:52 AM
I am using a file upload form(ExtJS 4.1.1 gpl) as given at
http://cdn.sencha.com/ext-4.1.1-gpl/docs/index.html#!/example/form/file-upload.html

But I need to cancel/stop the file upload on click of some button.

Please help me how to cancel/stop a file upload.

mitchellsimoens
17 Jan 2013, 9:00 AM
window.stop() should cancel all client requests, otherwise try to destroy the iframe with the form. I'm only afraid that the resulting behavior could be browser dependent.