github-actions
released this
23 Nov 16:35
·
13 commits
to main
since this release
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",
},
})
);