这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danielgtaylor
Copy link
Owner

This PR makes it easy to support basic file uploads using the RawBody []byte request field. It also enables more docs/examples/etc on the request body, and the ability to set a custom content type.

Fixes #28.

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Files Coverage Δ
schema.go 95.25% <100.00%> (-0.06%) ⬇️
huma.go 83.13% <92.30%> (+0.24%) ⬆️

📢 Thoughts on this report? Let us know!.

@danielgtaylor danielgtaylor merged commit ebefca4 into main Oct 23, 2023
@danielgtaylor danielgtaylor deleted the file-uploads branch October 23, 2023 05:09
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.

How to upload files and forms with huma?

2 participants