fixup! Hello gridfs lib + fsHooks for mongodb bucket storage

This commit is contained in:
David Arnold 2020-09-16 22:42:34 -05:00 committed by Denis Perov
parent 0d97b1314d
commit bb780976e9

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';