Click here to Skip to main content
15,868,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,

I am writing code for download the file for a particular path but it gives pop up when I click download button , i do not want to that pop up i.e. open ,save ,cancel pop up.
Posted
Comments
Philippe Mori 26-Nov-15 12:13pm    
You never want to go against how Internet works. A browser explictly show that a file is dowloaded so that user know about it. Trying to go against that is malicious.

1 solution

You can't avoid it: it's a browser feature (and only some browsers) that is designed to prevent your site downloading stuff to the user without his knowledge.

Even trying to disable it would probably be seen as malicious activity since it is trying to bypass a security measure. Not a very effective measure, certainly - but a security measure.
 
Share this answer
 
Comments
Shrikesh_kale 26-Nov-15 2:52am    
http://stackoverflow.com/questions/6773866/download-file-and-automatically-save-it-to-folder

Can You refer above link ?? if any possibility ???
OriginalGriff 26-Nov-15 3:03am    
No - that's not using a browser on the client, it's using a specific application which contains a browser control. Very, very few people will install an application specifically to browse and download from your site. Certainly, I wouldn't run anything I downloaded from a download site! :laugh:

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