diff --git a/lib/memHandler.js b/lib/memHandler.js index 29cd2ee..65266b6 100644 --- a/lib/memHandler.js +++ b/lib/memHandler.js @@ -13,7 +13,7 @@ module.exports = (options, fieldname, filename) => { let fileSize = 0; // eslint-disable-line let hash = crypto.createHash('md5'); - const getBuffer = () => Buffer.concat(buffers); + const getBuffer = () => Buffer.concat(buffers, fileSize); const emptyFunc = () => ''; return {