yakovkhalinsky / backblaze-b2

Node.js Library for the Backblaze B2 Storage Service
MIT License
191 stars 59 forks source link

add optional contentLength param to uploadPart #92

Closed Klowner closed 4 years ago

Klowner commented 4 years ago

Allow for same behavior as uploadFile, providing specific contentLength to override the automatic values of data.byteLength || data.length.

Thanks!

Klowner commented 4 years ago

Please feel free to let me know if these needs any changes! Thank you :)

odensc commented 4 years ago

Good idea - can you add a quick test to check that the header is set properly when the arg is passed? Also would be nice if you could add it to the README so it's documented.

Klowner commented 4 years ago

Should be all set.