Last post Mar 11, 2019 07:01 AM by Wei Zhang
Mar 10, 2019 05:39 AM|JY_2013|LINK
I'm planning to use ASP.NET's FileUpload control to a server's file system as suggested in the link mentioned below:
However, I do not see any way of then downloading the uploaded files to the server. How do I then download those files?
Basically I would like to upload various files, and provide links to download each of them.
The files could be in either .DOCX or .PDF formats.
Thanks in advance,
Mar 11, 2019 07:01 AM|Wei Zhang|LINK
According to your description, both submit and download are unique.You should write code to download files. For example , if you want to download a mp4 file when click the button.You should the virtual path of the video file and write as below:
protected void Button2_Click(object sender, EventArgs e)
Response.ContentType = "Application/mp4";
Response.AppendHeader("Content-Disposition", "attachment; filename=SampleVideo.mp4");
Here is the link for downloading file.I hope it could help you.