Skip to content

Commit

Permalink
Merge pull request #218 from lifeomic/max-body-length
Browse files Browse the repository at this point in the history
Add maxBodyLength to axios config for upload
  • Loading branch information
markdlv authored Jul 25, 2022
2 parents 40093e1 + 594ef8d commit 446c07d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ module.exports.multipartUpload = async function (options, uploadId, fileName, fi
'Content-Length': size,
'Content-MD5': verifyStream.contentMD5
},
maxContentLength: size
maxContentLength: size,
maxBodyLength: size
});
const diff = process.hrtime(time);
bar.increment(size);
Expand Down

0 comments on commit 446c07d

Please sign in to comment.