Reputation: 7766
In my view i have a link to download a .mp4 like below
<a href="@Href("~/Content/mm/Manual_Video.mp4")" target="_blank"> Download Video </a>
and i stored the Manual_Video.mp4 in Content folder but when I click on the link I am getting below error
404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Any idea?
Edit
Download PDF
this link is working fine.
Upvotes: 0
Views: 1026
Reputation: 12491
I check around and find this answer:
Add a MIME
type with extension mp4 in IIS
But please note that you should set the MIME type video/mp4
instead of video/mpeg
orelse in IE "Save Target As.." shows different format, and it also affects the default video player open by browser.
video/mpeg
File name: test.mpeg
Save as type: Movie Clip
video/mp4
File name: test.mp4
Save as type: MP4 Video
Upvotes: 1