Skip to content

maxChunkSize parameter missing  #8

@szydan

Description

@szydan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions