Skip to content

enforce-upload-files-binary-type#1736

Merged
lovelydinosaur merged 6 commits intoencode:masterfrom
aminalaee:enforce-upload-files-to-be-binary
Aug 13, 2021
Merged

enforce-upload-files-binary-type#1736
lovelydinosaur merged 6 commits intoencode:masterfrom
aminalaee:enforce-upload-files-to-be-binary

Conversation

@aminalaee
Copy link
Contributor

Fixes #1706

Forces FileContent to be bytes or BytesIO instances. For str and StringIO instances a TypeError is raised.

@lovelydinosaur
Copy link
Contributor

Fab, yes.. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce that upload files must be binary, not text.

2 participants