When I click on a button how do I stop an upload because it is still uploading in the background?:
Below is code:
$(".imageCancel").click(function() {
$(".upload_target").attr("src","#"); //iframe
}
When I click on a button how do I stop an upload because it is still uploading in the background?:
Below is code:
$(".imageCancel").click(function() {
$(".upload_target").attr("src","#"); //iframe
}
Take a look this maybe helps to u : Jquery File Start-Cancel Upload
You can just remove and then recreate input file upload element of document. it is not perfect, but it'll work.