Skip to content

Commit 738f6d9

Browse files
committed
feat: allow file parameter in FileUploadParams to accept string type for HTTP URL base base64 case.
1 parent f5d2713 commit 738f6d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resources/beta/v2/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export interface FileUploadParams {
281281
* When supplying a URL, the server must receive the response headers within 8
282282
* seconds; otherwise the request fails with 400 Bad Request.
283283
*/
284-
file: Uploadable;
284+
file: Uploadable | string;
285285

286286
/**
287287
* The name with which the file has to be uploaded.

src/resources/files/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ export interface FileUploadParams {
10941094
* When supplying a URL, the server must receive the response headers within 8
10951095
* seconds; otherwise the request fails with 400 Bad Request.
10961096
*/
1097-
file: Uploadable;
1097+
file: Uploadable | string;
10981098

10991099
/**
11001100
* The name with which the file has to be uploaded. The file name can contain:

0 commit comments

Comments
 (0)