Skip to content

Commit

Permalink
fix: streaming cannot go forward or backward
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiakbar committed Jan 26, 2024
1 parent 9fbdeeb commit 9e3d7e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/file/controller/public/file.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export class FileController {

res.set({
'Content-Type': fileMetaData.mimeType,
'Content-Length': fileMetaData.size,
'Accept-Ranges': 'bytes',
'Content-Disposition': `filename="${fileMetaData.name}"`
});

return new StreamableFile(file);
Expand Down

0 comments on commit 9e3d7e1

Please sign in to comment.