I have a web MVC application that I would like to add feature that gives users the ability to download large files from my server. The users have a combination of Mac and Windows PC. I was thinking along the lines of javasripts or silverlight.
Can someone advice me on how to implement this feature?
Do you have any code examples?
Use the File method of
Controllerclass.So Create a Controller called
FilesControllerand have an action method calledDownLoadThis Will return a PDF file from the specified path(fullFilePath) with the
MimeType/ContentType as PDF and “yourDownLoadName.pdf” as the Downloadable file nameUsers can access this like
http://yourdomainname.com/Files/Download?fileId=somefileIdThis method has got a bunch of overloads using file path, byte array ,stream etc..