Skip to content

Commit

Permalink
fix(typescript): file arrays call appendFile (#4787)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored and kbill-fern committed Oct 1, 2024
1 parent a56cb40 commit 31e9dc6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions generators/typescript/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.40.8] - 2024-09-28

- Fix: File array uploads now call `request.appendFile` instead of `request.append` which
was causing form data to be in a corrupted state.

## [0.40.7] - 2024-09-28

- Fix: The generated README will now have a section that links to the generated
Expand Down
2 changes: 1 addition & 1 deletion generators/typescript/sdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.40.7
0.40.8
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function appendPropertyToFormData({
),
ts.factory.createBlock(
[
context.coreUtilities.formDataUtils.append({
context.coreUtilities.formDataUtils.appendFile({
referencetoFormData: referenceToFormData,
key: property.key.wireValue,
value: ts.factory.createIdentifier(FOR_LOOP_ITEM_VARIABLE_NAME)
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31e9dc6

Please sign in to comment.