You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 }
The text was updated successfully, but these errors were encountered:
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 }
The text was updated successfully, but these errors were encountered: