Click here to Skip to main content
15,922,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all,
In my application there is a functionality to upload a video file. if a user uploads a big video file and before uploading if he presses a cancel button just panel get closed but uploading process does not stops. I have used a function for stop the uploading process it works fine in Mozilla Firefox but it is not working in i.e (internet explorer) please help me ..
i am attaching that function below




function cancelUpload() {
            isUploadCanceled = true;
            $find('<%=modalpopupvideo.ClientID%>').hide();
            
            var up = document.getElementById('<%=flpvideo.ClientID%>');
            up.setAttribute("type", "input");
            up.setAttribute("type", "file");
            if (window.stop) {
               
                window.stop();

            }

            document.getElementById('myHiddenDiv').style.display = 'none';
           

        }



please help.. thanks in advance
Posted
Comments
bbirajdar 2-May-12 10:41am    
Refresh the page. Uploading will be cancelled

1 solution

Hi,

Once a file upload is started, there is no way to stop it.

Best Luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900