mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
fix
This commit is contained in:
parent
9c34c23791
commit
5ad5271d5a
@ -823,7 +823,7 @@ public class CustomerRequestsController : Controller
|
|||||||
return NotFound();
|
return NotFound();
|
||||||
var content = await _storageService.DownloadImageAsync(reference.FileReference);
|
var content = await _storageService.DownloadImageAsync(reference.FileReference);
|
||||||
var mimeType = _storageService.GetMimeType(reference.FileReference);
|
var mimeType = _storageService.GetMimeType(reference.FileReference);
|
||||||
return new FileStreamResult(content, mimeType);
|
return new FileStreamResult(content, "application/octet-stream");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
@ -913,7 +913,7 @@ public class CustomerRequestsController : Controller
|
|||||||
return NotFound();
|
return NotFound();
|
||||||
var content = await _storageService.DownloadImageAsync(reference.FileReference);
|
var content = await _storageService.DownloadImageAsync(reference.FileReference);
|
||||||
var mimeType = _storageService.GetMimeType(reference.FileReference);
|
var mimeType = _storageService.GetMimeType(reference.FileReference);
|
||||||
return new FileStreamResult(content, mimeType);
|
return new FileStreamResult(content, "application/octet-stream");
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user