Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to save an mp4 video link to user's pc's specified local path. Is there any way to do that with asp.net ?
Posted
Updated 19-Mar-15 22:26pm
v2

1 solution

No. The server cannot control where a file is saved on the client. If it could, that would be a significant security hole in the browser.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Mar-15 11:42am    
Of course. A 5.
—SA
kubibay 20-Mar-15 4:09am    
Ok then , one question;

There are lots of browser extesions which download youtube videos and you can set the download folder,

how they can do that?
Richard Deeming 20-Mar-15 8:17am    
Browser extensions run on the client, and have to be explicitly installed by the user. They can do anything that the extension API allows, including many things that code running on the server, and javascript running in a web page, cannot do.
kubibay 23-Mar-15 3:19am    
Ok then, if we ingore to specify the save path,
how can we download any youtube,vimeo mp4 link to default download location?
Richard Deeming 23-Mar-15 8:52am    
By setting the appropriate response headers and writing the bytes of the file to the response.
Downloading a File with a Save As Dialog in ASP.NET[^]

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