mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
fixup! Hello gridfs lib + fsHooks for mongodb bucket storage
This commit is contained in:
parent
59a936ae90
commit
e080aea61d
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ export const createInterceptDownload = bucket =>
|
||||||
const getContentDisposition = (name, downloadFlag) => {
|
const getContentDisposition = (name, downloadFlag) => {
|
||||||
const dispositionType = downloadFlag === 'true' ? 'attachment;' : 'inline;';
|
const dispositionType = downloadFlag === 'true' ? 'attachment;' : 'inline;';
|
||||||
|
|
||||||
const encodedName = encodeURIComponent(fileName);
|
const encodedName = encodeURIComponent(name);
|
||||||
const dispositionName = `filename="${encodedName}"; filename=*UTF-8"${encodedName}";`;
|
const dispositionName = `filename="${encodedName}"; filename=*UTF-8"${encodedName}";`;
|
||||||
const dispositionEncoding = 'charset=utf-8';
|
const dispositionEncoding = 'charset=utf-8';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue