23 / resumable.js

A JavaScript library for providing multiple simultaneous, stable, fault-tolerant and resumable/restartable uploads via the HTML5 File API.
MIT License
4.65k stars 611 forks source link

file upload doesn't work in node 14 #588

Open frankcrvn opened 3 years ago

frankcrvn commented 3 years ago

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

mayeaux commented 2 years ago

Did you ever find a fix to this?

mayeaux commented 2 years ago

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