Program letöltés backend zsír!!!

This commit is contained in:
2025-04-06 19:34:12 +02:00
parent 66744e0526
commit 3366884965
@@ -480,6 +480,8 @@ 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)