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
hey, can you please elaborate? Do you want to do it for all calls?
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
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
ok I will try