Skip to content

Commit 34f2966

Browse files
valekjoTC-MO
andauthored
docs: Prepare docs for fileupload editor (#1524)
This PR should be merged once the feature is in Apify Console. ### Related PRs - apify/apify-shared-js#509 --------- Co-authored-by: Michał Olender <[email protected]>
1 parent 7f28477 commit 34f2966

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
45.4 KB
Loading
118 KB
Loading

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,19 @@ The `anyDate` property renders a date picker that accepts both absolute and rela
223223

224224
![Apify Actor input schema - country input](./images/input-schema-date-both.png)
225225

226+
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.
227+
228+
![Apify Actor input schema - fileupload input](./images/input-schema-fileupload-input.png)
229+
230+
The user provides either a URL or uploads the file to a key-value store (existing or new).
231+
232+
![Apify Actor input schema - fileupload input options](./images/input-schema-fileupload-modal.png)
233+
226234
Properties:
227235

228236
| Property | Value | Required | Description |
229237
|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
230-
| `editor` | One of <ul><li>`textfield`</li><li>`textarea`</li><li>`javascript`</li><li>`python`</li><li>`select`</li><li>`datepicker`</li><li>`hidden`</li></ul> | Yes | Visual editor used for <br/>the input field. |
238+
| `editor` | One of <ul><li>`textfield`</li><li>`textarea`</li><li>`javascript`</li><li>`python`</li><li>`select`</li><li>`datepicker`</li><li>`fileupload`</li><li>`hidden`</li></ul> | Yes | Visual editor used for <br/>the input field. |
231239
| `pattern` | String | No | Regular expression that will be <br/>used to validate the input. <br/> If validation fails, <br/>the Actor will not run. |
232240
| `minLength` | Integer | No | Minimum length of the string. |
233241
| `maxLength` | Integer | No | Maximum length of the string. |

0 commit comments

Comments
 (0)