File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
src/data/markdown/docs/02 javascript api Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ See example further down on this page. For more in-depth description see [Runnin
26
26
27
27
### Returns
28
28
29
- | Type | Description |
30
- | -------------- | ---------------------------------------------------------------------------------------- |
31
- | string / bytes | The contents of the file, read as text or bytes (if ` b ` has been specified as the mode). |
29
+ | Type | Description |
30
+ | -------------- | ---------------------------------------------------------------------------------------------------- |
31
+ | string / Array | The contents of the file, returned as string or array of numbers (if ` b ` was specified as the mode). |
32
32
33
33
<CodeGroup labels={[ "users.json"] }>
34
34
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ description: 'Create a file object that is used for building multi-part requests
5
5
6
6
Create a file object that is used for building [ Multipart requests (file uploads)] ( /examples/data-uploads#multipart-request-uploading-a-file ) .
7
7
8
- | Parameter | Type | Description |
9
- | ----------- | -------------------- | -------------------------------------------------------------------------------- |
10
- | data | string / ArrayBuffer | File data as string or an ` ArrayBuffer ` object. |
11
- | filename | string | The filename to specify for this field (or "part") of the multipart request. |
12
- | contentType | string | The content type to specify for this field (or "part") of the multipart request. |
8
+ | Parameter | Type | Description |
9
+ | ----------- | ---------------------------- | -------------------------------------------------------------------------------- |
10
+ | data | string / Array / ArrayBuffer | File data as string, array of numbers, or an ` ArrayBuffer ` object. |
11
+ | filename | string | The filename to specify for this field (or "part") of the multipart request. |
12
+ | contentType | string | The content type to specify for this field (or "part") of the multipart request. |
13
13
14
14
### Returns
15
15
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ _FileData_ is an object for wrapping data representing a file when doing
7
7
[ multipart requests (file uploads)] ( /examples/data-uploads#multipart-request-uploading-a-file ) .
8
8
You create it by calling [ http.file( data, [ filename] , [ contentType] )] ( /javascript-api/k6-http/file-data-filename-contenttype ) .
9
9
10
- | Name | Type | Description |
11
- | --------------------- | -------------------- | ------------------------------------------------------------------------ |
12
- | FileData.data | string / ArrayBuffer | File data as string or an ` ArrayBuffer ` object. |
13
- | FileData.content_type | string | The content type that will be specified in the multipart request. |
14
- | FileData.filename | string | The filename that will be specified in the multipart request. |
10
+ | Name | Type | Description |
11
+ | --------------------- | ---------------------------- | ------------------------------------------------------------------------ |
12
+ | FileData.data | string / Array / ArrayBuffer | File data as string, array of numbers, or an ` ArrayBuffer ` object. |
13
+ | FileData.content_type | string | The content type that will be specified in the multipart request. |
14
+ | FileData.filename | string | The filename that will be specified in the multipart request. |
15
15
16
16
### Example
17
17
You can’t perform that action at this time.
0 commit comments