Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
CSS
I have multiple .docs file on server, and i want to set the download address to a specified Folder. i.e By default download address of a file is

    "C:\Users\shiva.roy\Downloads"

 But i want to set it as


     "C:\Users\shiva.roy\Downloads\CompanyPolicy"

from Server Side Code. Can anyone pls suggest me, how i  can do it in MVC4 ASP.net. Thanks in advance
Posted
Comments
Sinisa Hajnal 15-Dec-14 8:53am    
What have you tried? What prevents your from changing the address in your controller? Describe the setup in more detail.

1 solution

You cannot control where the browser will save a file. If you could, it would be a major security vulnerability.
 
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