huge-uploader-nodejs
huge-uploader-nodejs copied to clipboard
maxChunkSize parameter missing
Hi Thanks for the library Found small bug, (will open a PR soon)
Here the maxChunkSize parameter is missing, because of that the check for maximum file size does not work
https://github.com/Buzut/huge-uploader-nodejs/blob/master/index.js#L196
is
if (!checkTotalSize(maxFileSize, req.headers['uploader-chunks-total'])) {
should be
if (!checkTotalSize(maxFileSize, maxChunkSize , req.headers['uploader-chunks-total'])) {