0

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.

tereško
  • 58,060
  • 25
  • 98
  • 150
Sachu
  • 7,555
  • 7
  • 55
  • 94
  • Do you have in your RouteConfig line like `routes.IgnoreRoute("Content/{*pathInfo}");`? Could be that it's wrong routing – teo van kot Dec 10 '15 at 06:28

1 Answers1

1

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

Community
  • 1
  • 1
teo van kot
  • 12,350
  • 10
  • 38
  • 70