muxinc / upchunk

Uploads Chunks! Takes big files, splits them up, then uploads each one with care (and PUT requests).
MIT License
329 stars 46 forks source link

[Feature Request] Response object inside the 'error' event #128

Closed mr-sanders closed 5 months ago

mr-sanders commented 5 months ago

It seems sensible to provide access to the response object within the callback of the 'error' event. For instance, this would be useful if we need to handle specific server issues such as insufficient storage or conflicts. Currently, we only receive a message with the status code.

cjpillsbury commented 5 months ago

Hey @mr-sanders. This sounds reasonable to me and the PR looks similarly reasonable. Let me check in with a few folks before merging/releasing, but I suspect this will make it in soon. Thanks for the feedback and especially the contrib!

cjpillsbury commented 5 months ago

resolved by #129