how to send an API content-type:multipart/form-data of this format in api-client?

how to send an API content-type: multipart/form-data of this format in api-client?
4 Replies
skirianov
skirianov2y ago
hey, can you please elaborate? Do you want to do it for all calls?
Yatharth
YatharthOP2y ago
no for just one post call I am trying to upload image to my server and will have to send formdata for it to happen but can't find a way to do this through middleware, it works if I directly call the API from my pages
skirianov
skirianov2y ago
You can create a custom API handler on the middlewre side and set the headers manually https://docs.vuestorefront.io/v2/integrate/extending-integrations.html
Extending integrations | Vue Storefront 2
Vue Storefront 2 documentation
Yatharth
YatharthOP2y ago
ok I will try
Want results from more Discord servers?
Add your server