A
Alokaiyatharth2704

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?
S
skirianov358d ago
hey, can you please elaborate? Do you want to do it for all calls?
Y
yatharth2704358d 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
S
skirianov358d 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
Y
yatharth2704358d ago
ok I will try
Want results from more Discord servers?
Add your server
More Posts
Themes marketplaceAre there any places where I can buy a Vue Storefront theme?, something like themeforest for ShopifyGetting error while static deploy vsf with magento 2 in EC2 for production ,yarn build yarn start works , but as soon as terminal is closed server stops if i build it with taDefault locale does not workHi everybody, when I set the defaultLocale in nuxt.config.js, it seems that it does not work, the rVue Storefront Cloud Docs Swagger authorizationHi there! The docs at https://docs.vuestorefront.io/cloud/v2/api/swagger.html say that `Access to Ash: cli: command not foundanyone know why i would be getting this error `sh: cli: command not found` when doing a new install Hello,I am trying to setup the shopware PWA. The backend is hosted at Ceroline and i would like to connectComposableHow to use methods from one composable (for example method clear in useCart) in another composable (Style repeated for every componentHi there, in my inspect tool I notice that style il repeated for every component. Is it normal behavAdding a custom API callWe are trying to create a Business unit upon the creation of the new user for that we have created aGlide.js is treated as an ES moduleHi, i get this error after running `yarn start` and trying to access the page Does anyone know howtranslating componentsI cannot find a way to translate the SfAddToCart button's label. How can I do that?How is checkout components rendering?In code i find this array of steps in checkout. But how i can, for example, change component for shiUnable to make API call on serverhttps://auction-dev.ycspl.in/weeklyauction while accessing this endpoint my network request is made issue with API callWhen I do yarn start it adds undefined to my request url but when I do yarn dev it works fine. Can y