-
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.
-
I have the following to be able to upload a .tar.gz file. |
Beta Was this translation helpful? Give feedback.
-
You can remove |
Beta Was this translation helpful? Give feedback.
media_type
is 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_type
is not used to indicate that your route accepts tar gz files.You can remove
media_type
and you will notice that you can indeed upload a file and get a json response