Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I need to implement a fucnctionality like .....user downlaod a file from internet at that time it is asking to save the file where ever user wants.

The .net server side need generate the file and we need to give the permission to user to save the file.

Please help us.

Philippe Mori 23-Dec-14 22:02pm    
This is by design that browsers ask to save a file... You don't have any control on that as far as I know.

1 solution

You can't give client side folder permission from server side. if it is can be done, you will giving control to someone in the internet to access/delete/run file in your computer!
you can try with one of client side scripting language but it is again depend on the browser settings and the user preferences. so you better change your application design to without depending on client side folder or folder location.

check below previous CP question:
how to open save as dialog box in[^]
and also below tutorial:
Upload and Download files from SQL Server Database in ASP.Net[^]
Note that in above, whether file save dialog showing or not depend on the browser preferences.
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