I have MVC application throwing error 'Access to path XXX denied' while uploading video. Error is not thrown when image is being uploaded.
Any thing wring in my code?
[HttpPost]
public ActionResult Index(HttpPostedFileBase video)
{
//var httpPostedFile = Request.Files[0];
var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
//ffMpeg.GetVideoThumbnail(Server.MapPath("~/Images"), "video_thumbnail.jpg");
var fileName = Path.GetFileName(video.FileName);
var path = Server.MapPath("~/Images");
video.SaveAs(path);
ffMpeg.GetVideoThumbnail(path, "video_thumbnail.jpg");
return View();
}