Remote Address:192.168.136.7:80 Request URL:http://ptyisrequest-dev/DashBoard/ViewAttachment?filename=2014%5CHW14-1555_AT1.xls Request Method:GET Status Code:302 Found Cache-Control:private Content-Disposition:attachment; filename=HW14-1555_AT1.xls Content-Length:171 Content-Type:application/vnd.ms-excel; charset=utf-8 Date:Mon, 01 Jun 2015 08:57:56 GMT Location:/error/unknown?aspxerrorpath=/DashBoard/ViewAttachment Server:Microsoft-IIS/6.0 X-AspNet-Version:4.0.30319 X-AspNetMvc-Version:3.0 X-Powered-By:ASP.NET
[Authorize] [HttpGet] public FileResult ViewAttachment(string fileName) { var path = tempPath + "\\" + fileName; FileInfo file = new FileInfo(path); var mimeType = ClassHelper.GetMimeType(file.Name); return File(path, mimeType, file.Name); }
http://ptyisrequest-dev/DashBoard/ViewAttachment?filename=2014%5CHW14-1555_AT1.xls
/error/unknown?aspxerrorpath=/DashBoard/ViewAttachment
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)