Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
On client side i've one hyper link and on click of it I redirect it to the MVC controller's action method. In Action method I return File() (FileResult), which in turn open the file save/download box on IE. Now if i click multiple times on the link without closing the save/download box, it will not open multiple save/download box.
Problem is with firefox and chrome. If i click on the same link from browser, multiple times file will be available for download. Is there any way by which I can identify that file is already available to download (until user has not downloaded/cancelled the download) so i can modify my client logic and user will not be available with multiple files to download.
Posted
Comments
Dholakiya Ankit 3-Aug-13 1:54am    
you can not control over download box

1 solution

I am not so sure, whether you can have control over the Download Box, still research over it for some time.

For a quick fix, I would suggest you to disable the Button, once it is clicked.
As a result, it will prevent the user from clicking it many times.
I have seen this type of implementation in websites a lot.
 
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