fixup! Hello gridfs lib + fsHooks for mongodb bucket storage

pull/4482/head
David Arnold 5 years ago committed by Denis Perov
parent 0d97b1314d
commit bb780976e9
  1. 2
      models/lib/fsHooks/createInterceptDownload.js

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

Loading…
Cancel
Save