Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Express - Vimeo upload file size problem #189

Open
celalozlal opened this issue Aug 19, 2023 · 0 comments
Open

Node Express - Vimeo upload file size problem #189

celalozlal opened this issue Aug 19, 2023 · 0 comments

Comments

@celalozlal
Copy link

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 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant