Skip to content

Commit 0b37a7c

Browse files
committed
feat: Add fileupload editor for string arrays to docs
1 parent 986e611 commit 0b37a7c

File tree

1 file changed

+5
-1
lines changed
  • sources/platform/actors/development/actor_definition/input_schema

1 file changed

+5
-1
lines changed

sources/platform/actors/development/actor_definition/input_schema/specification.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ The `anyDate` property renders a date picker that accepts both absolute and rela
234234

235235
The `fileupload` editor enables users to specify a file as input. The input is passed to the Actor as a string. It is the Actor author's responsibility to interpret this string, including validating its existence and format.
236236

237+
The editor makes it easier to users to upload the file to a key-value store of their choice.
238+
237239
![Apify Actor input schema - fileupload input](./images/input-schema-fileupload-input.png)
238240

239241
The user provides either a URL or uploads the file to a key-value store (existing or new).
@@ -440,7 +442,7 @@ Properties:
440442

441443
| Property | Value | Required | Description |
442444
| --- | --- | --- | --- |
443-
| `editor` | One of <ul><li>`json`</li><li>`requestListSources`</li><li>`pseudoUrls`</li><li>`globs`</li><li>`keyValue`</li><li>`stringList`</li><li>`select`</li><li>`hidden`</li></ul> | Yes | UI editor used for input. |
445+
| `editor` | One of <ul><li>`json`</li><li>`requestListSources`</li><li>`pseudoUrls`</li><li>`globs`</li><li>`keyValue`</li><li>`stringList`</li><li>`fileupload`</li><li>`select`</li><li>`hidden`</li></ul> | Yes | UI editor used for input. |
444446
| `placeholderKey` | String | No | Placeholder displayed for <br/>key field when no value is specified. <br/>Works only with `keyValue` editor. |
445447
| `placeholderValue` | String | No | Placeholder displayed in value field <br/>when no value is provided. <br/>Works only with `keyValue` and <br/>`stringList` editors. |
446448
| `patternKey` | String | No | Regular expression that <br/>will be used to validate <br/>the keys of items in the array. <br/>Works only with `keyValue` <br/>editor. |
@@ -462,6 +464,8 @@ Editor type `requestListSources` supports input in formats defined by the [sourc
462464

463465
Editor type `globs` maps to the Crawlee's [GlobInput](https://crawlee.dev/api/core#GlobInput) used by the [UrlPatterObject](https://crawlee.dev/api/core#UrlPatternObject).
464466

467+
Editor type `fileupload` enables users to specify list of files as input. The input is passed to the Actor as an array of strings. It is the Actor author's responsibility to interpret the strings, including validating the file existence and format. The editor makes it easier for users to upload the files to a key-value store they choose.
468+
465469
Editor type `select` allows the user to pick items from a select, providing multiple choices. Please check this example of how to define the multiselect field:
466470

467471
```json

0 commit comments

Comments
 (0)