title: Unable to download video file in ASP.NET MVC
body: <p>I am using following code to download video file in ASP.net MVC but still unable to download.</p>
  
  <pre><code>public FileResult GetFile()
  {
      string filename = string.Empty;
      byte[] file = null;
      string path = string.Empty;
      filename = "testVideo.mp4";
      path = Server.MapPath("location path here");
      System.IO.FileInfo fileinfo = new System.IO.FileInfo(path);
      file = System.IO.File.ReadAllBytes(path);
      return File(file, "content-disposition");
  }
  </code></pre>