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 file upload for base64 encoded files #1843

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

RobbeSneyders
Copy link
Member

Fixes #1825

Files can be encoded as bytes or base64 (openapi docs), we were only handling bytes before.

Comment on lines +64 to +67
return schema.get("type") == "string" and schema.get("format") in [
"binary",
"base64",
]
Copy link
Member Author

Choose a reason for hiding this comment

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

y u do dis black 😢

@coveralls
Copy link

Coverage Status

coverage: 94.214%. remained the same
when pulling 1cb78ff on bugfix/base64-file-upload
into 0ae9ba8 on main.

@RobbeSneyders RobbeSneyders merged commit 211bdb0 into main Feb 13, 2024
8 checks passed
@RobbeSneyders RobbeSneyders deleted the bugfix/base64-file-upload branch February 13, 2024 22:52
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.

Base64 upload not working (tested with swagger-ui)
2 participants