Search
Get Started
A
Alokai
•
3y ago
Yatharth
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
?
Alokai
Join
4,221
Members
View on Discord
Was this page helpful?
Yes
No
S
skirianov
•
5/2/23, 10:51 AM
hey
, can you please elaborate
? Do you want to do it for all calls
?
Y
Yatharth
OP
•
5/2/23, 12:18 PM
no for just one post call
Y
Yatharth
OP
•
5/2/23, 12:18 PM
I am trying to upload image to my server and will have to send formdata for it to happen
Y
Yatharth
OP
•
5/2/23, 12:19 PM
but can
't find a way to do this through middleware
, it works if I directly call the API from my pages
S
skirianov
•
5/2/23, 1:31 PM
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
Y
Yatharth
OP
•
5/2/23, 1:39 PM
ok I will try