RED-6864 - Remove fileProxyStreamForDownload as it closes the stream before downloading the file
This commit is contained in:
parent
7f7e1d2699
commit
04212cdd4e
@ -211,7 +211,6 @@ public class DownloadController implements DownloadResource {
|
||||
TenantContext.setTenantId(tenantId);
|
||||
var downloadStatus = getDownloadStatus(storageId, userId);
|
||||
var fileDownloadStream = getFileForDownload(storageId, userId);
|
||||
fileProxyStreamForDownload(fileDownloadStream);
|
||||
|
||||
return getResponseEntity(inline, new InputStreamResource(fileDownloadStream), downloadStatus.getFilename(), MediaType.parseMediaType("application/zip"), downloadStatus.getFileSize());
|
||||
});
|
||||
@ -282,7 +281,6 @@ public class DownloadController implements DownloadResource {
|
||||
var token = oneTimeTokenDownloadService.getToken(oneTimeToken);
|
||||
var downloadStatus = getDownloadStatus(token.getStorageId(), token.getUserId());
|
||||
var fileDownloadStream = getFileForDownload(token.getStorageId(), token.getUserId());
|
||||
fileProxyStreamForDownload(fileDownloadStream);
|
||||
|
||||
TenantContext.clear();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user