Add files to model request body #8697
Unanswered
invissiblecat
asked this question in
Q&A
Replies: 0 comments
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.
-
I want to upload some files with model instance creation. According to the examples, I think the full request body should look something like this:
There is a thing that is not clear to me: what exactly should I pass to these
'multipart/form-data'
fields of typeobject
? While using@requestBody.file()
there is a binary string nedeed. Do I also need to declare image fields as string and expect binary strings?Beta Was this translation helpful? Give feedback.
All reactions