huge-uploader-nodejs icon indicating copy to clipboard operation
huge-uploader-nodejs copied to clipboard

maxChunkSize parameter missing

Open szydan opened this issue 4 years ago • 0 comments

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'])) {

szydan avatar May 23 '21 18:05 szydan