You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am describing a schema for uploading files, and hence using multipart/form-data content type for requestBody. The generated function have no argument provided. Note that the request: Request is correctly generated for application/x-www-form-urlencoded content type.
I also need this functionality. My specific use case is allowing clients to upload a file. According to the fastapi docs here, it talks about using the UploadFile and File data types. The recommended approach is to use the UploadFile type.
This library does not yet support the multipart/form-data MIME type for a requestBody. @koxudaxi I'm attempting this but I'm realizing that not all use cases for multipart/form-data will be an UploadFile type. At this point, I'm not sure how to handle this but I'll give a try and see what I come up with.
I am describing a schema for uploading files, and hence using
multipart/form-data
content type forrequestBody
. The generated function have no argument provided. Note that therequest: Request
is correctly generated forapplication/x-www-form-urlencoded
content type.The text was updated successfully, but these errors were encountered: