fixup! Hello gridfs lib + fsHooks for mongodb bucket storage

This commit is contained in:
David Arnold 2020-09-16 22:42:34 -05:00
parent 495cea9123
commit 1691a529d1
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08

View file

@ -39,7 +39,7 @@ export const createInterceptDownload = bucket =>
const getContentDisposition = (name, downloadFlag) => {
const dispositionType = downloadFlag === 'true' ? 'attachment;' : 'inline;';
const encodedName = encodeURIComponent(fileName);
const encodedName = encodeURIComponent(name);
const dispositionName = `filename="${encodedName}"; filename=*UTF-8"${encodedName}";`;
const dispositionEncoding = 'charset=utf-8';