Skip to content

Commit fb8b70e

Browse files
valekjoTC-MO
andauthored
feat: Add fileupload editor for string arrays to docs (#1979)
Co-authored-by: Michał Olender <[email protected]>
1 parent 8f7cd04 commit fb8b70e

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 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,7 @@ 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 a list of files as input. The input is passed to the Actor as an array of strings. The Actor author is responsible for interpreting the strings, including validating file existence and format. This editor simplifies the process for users to upload files to a key-value store of their choice.
465468
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:
466469

467470
```json

0 commit comments

Comments
 (0)