Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bytes support in multipart uploads #974

Merged
merged 2 commits into from
May 21, 2020
Merged

Conversation

florimondmanca
Copy link
Member

The files argument allows str/bytes along with file objects, but we were not handling the bytes branch yet (incorrectly treating that as file objects).

I've provided a test, but also have a follow-up PR coming to tighten up the type checking in the multipart implementation (which was too lose for mypy to catch this).

@florimondmanca florimondmanca added the bug Something isn't working label May 21, 2020
Copy link
Member

@tomchristie tomchristie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, yup.

@florimondmanca florimondmanca merged commit ab9ace2 into master May 21, 2020
@florimondmanca florimondmanca deleted the fix-bytes-file-content branch May 21, 2020 14:25
@tomchristie tomchristie mentioned this pull request May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants