Skip to content

Commit

Permalink
fix: append fileName to the formData (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtobac authored Aug 13, 2024
1 parent 8ca2163 commit fb98f0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ src/SagemakerClient.ts
src/index.ts
src/aws-utils.ts
src/core/streaming-fetcher/streaming-utils.ts
src/ClientV2.ts
src/ClientV2.ts
src/api/resources/datasets/client/Client.ts
4 changes: 2 additions & 2 deletions src/api/resources/datasets/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ export class Datasets {
}

const _request = await core.newFormData();
await _request.appendFile("data", data);
await _request.appendFile("data", data, (data as File)?.name);
if (evalData != null) {
await _request.appendFile("eval_data", evalData);
await _request.appendFile("eval_data", evalData, (evalData as File)?.name);
}

const _maybeEncodedRequest = await _request.getRequest();
Expand Down

0 comments on commit fb98f0a

Please sign in to comment.