Upload zip or tar.gz file in POST #3250
-
|
I have the following to be able to upload a .tar.gz file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You can remove |
Beta Was this translation helpful? Give feedback.
media_typeis used to serialize whatever you return from the handlerupload. Litestar does not know how to serializedict[str, Any]into a tar file which is why it fails.media_typeis not used to indicate that your route accepts tar gz files.You can remove
media_typeand you will notice that you can indeed upload a file and get a json response