Skip to content

Commit 997da15

Browse files
authored
Re-raise 4xx responses from server when uploading files (#284)
Fixes #270 We were falling back to base64 encoding the file data when requests to upload the file failed. However if the client makes an invalid request such as failing to include Authorization headers by forgetting to auth then we should surface these errors. This commit now re-raises any 4xx errors returned while attempting to upload a file and adds tests to verify the behavior.
1 parent 7d4c04c commit 997da15

2 files changed

Lines changed: 189 additions & 273 deletions

File tree

0 commit comments

Comments
 (0)