We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
| None
Upload File
May need to be a separate issue, but `| None` also removes the `Upload File` button in OpenAPI schema docs :(
from litestar import Controller, Litestar, post from litestar.datastructures import UploadFile from litestar.enums import RequestEncodingType from litestar.params import Body class Files(Controller): @post(path="/files/upload") async def upload_files( self, data: UploadFile | None = Body(media_type=RequestEncodingType.MULTI_PART), ) -> str: return data app = Litestar(route_handlers=[Files])
Without | None
With | None
Originally posted by @JacobCoffee in #3407 (comment)
Note
While we are open for sponsoring on GitHub Sponsors and OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Without
| None
With
| None
Originally posted by @JacobCoffee in #3407 (comment)
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: