Skip to content

Node Express - Vimeo upload file size problem #189

@celalozlal

Description

@celalozlal

Hi,

There is something wrong with this code block.
node_modules>vimeo>lib>vimeo.js>Vimeo>upload
Line 451

// Ignore any specified upload approach and size. if (typeof params.upload === 'undefined') { params.upload = { 'approach': 'tus', 'size': fileSize } } else { params.upload.approach = 'tus' params.upload.size = fileSize // This code is useless }

When you use express-fileupload with express file this code block return param.filesize error. You can pass file size param on your code but this code block try to calculate file size via file parametre. So It is not working right.

You have to change this line like this.

// Ignore any specified upload approach and size. if (typeof params.upload === 'undefined') { params.upload = { 'approach': 'tus', 'size': fileSize } } else { params.upload.approach = 'tus' params.upload.size = params.upload.size // Change this line }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions