23/resumable.js

file upload doesn't work in node 14

frankcrvn opened this issue · 2 comments

code that works in node 10 doesn't work in node 14. Specifically getting scoping issues with variables not being available in promises

params { path: '10/1',
resumableChunkNumber: '3',
resumableChunkSize: '524288',
resumableCurrentChunkSize: '822525',
resumableTotalSize: '1871101',
resumableType: 'image/jpeg',
resumableIdentifier: '1871101-demo2jpeg',
resumableFilename: 'demo2.jpeg',
resumableRelativePath: 'demo2.jpeg',
resumableTotalChunks: '3' }
chunkfile .chunks/10/1/demo2.jpeg.3
TypeError: Cannot read property 'replace' of undefined

Did you ever find a fix to this?

Btw, works on Node 12 as well, but not 14
+1 to getting this fixed..