Slow upload with big files (multipart) #1911
Unanswered
jkermes
asked this question in
Potential Issue
Replies: 1 comment 2 replies
-
|
I faced the same in a cli I wrote to upload files to a fastapi backend and switched to requests for that purpose, didnt take time to see the root of this but I can confirm the issue @tomchristie |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hello! Multipart file uploads are slower than expected using httpx, especially on big files.
OS platform: x86_64 GNU/Linux
Python version: 3.9.7
Dependencies:
Generate a test file
dd if=/dev/zero of=bigfile bs=1000M count=1Server code (api.py)
Run the server with
uvicorn api:appTest code
Results:
Beta Was this translation helpful? Give feedback.
All reactions