Reputation: 65
I have a POST request that has an image attached as form-data. I would like to send additional data as json in the request body. Is this possible?
Thanks!
Upvotes: 0
Views: 1009
Reputation: 196
Within a single Request call is not possible. as you can only define one type of body.
One way you can do it is to stringify your json object and sent it as a string params in your form-data
Upvotes: 2