xhr download as octet-stream
This commit is contained in:
parent
a1d0eef8a5
commit
e9405f49ee
3 changed files with 2 additions and 4 deletions
|
@ -194,7 +194,7 @@ app.get('/assets/download/:id', async (req, res) => {
|
|||
const contentLength = await storage.length(id);
|
||||
res.writeHead(200, {
|
||||
'Content-Disposition': `attachment; filename=${meta.filename}`,
|
||||
'Content-Type': meta.mimeType,
|
||||
'Content-Type': 'application/octet-stream',
|
||||
'Content-Length': contentLength,
|
||||
'X-File-Metadata': JSON.stringify(meta)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue