Program letöltés backend zsír!!!
This commit is contained in:
@@ -479,7 +479,9 @@ namespace WorkFlowCheck.API.Controllers
|
|||||||
|
|
||||||
var fileBytes = await System.IO.File.ReadAllBytesAsync(filePath);
|
var fileBytes = await System.IO.File.ReadAllBytesAsync(filePath);
|
||||||
var fileType = "application/octet-stream";
|
var fileType = "application/octet-stream";
|
||||||
|
|
||||||
|
Response.Headers.Add("Content-Length", fileBytes.Length.ToString());
|
||||||
|
|
||||||
return File(fileBytes, fileType, fileName);
|
return File(fileBytes, fileType, fileName);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
Reference in New Issue
Block a user