File upload with additional form-data results in UnprocessableEntity[422] #10966
Replies: 2 comments
-
|
Can you share the client call you are using, and which client, please? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Let's close this for now to keep the discussions clean and organized. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I am able to access the file with the following implementation:
However, when I send additional form-data along with the file, there are two cases:
With "Content-Length" in headers, I get following error:
Without "Content-Length" in headers, I get UnprocessableEntity[422] with following response:
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.109.0
Pydantic Version
2.5.3
Python Version
3.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions