Skip to content

@vue-storefront/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Nov 16:35
· 18 commits to main since this release
f9fab52

Minor Changes

[ADDED] Add support for multipart/form-data requests in SDK

  • Added handling for multipart/form-data content type in the default HTTP client
  • Automatically handles File and Blob objects in request parameters
// Upload a file using multipart/form-data
await sdk.commerce.uploadFile(
  { file: new File(["content"], "test.txt", { type: "text/plain" }) },
  prepareConfig({
    headers: {
      "Content-Type": "multipart/form-data",
    },
  })
);