The task interface configuration guide describes the features of the HTML/JS/CSS editor. You can also try creating a button for recording and uploading a video file in Template Builder.
To add a video upload button to the task, use the {{field type= "file" name="output field name> "sources="<sources parameter>" fileType="<fileType parameter>"}}
component.
For example, to add a video recording button, use:
`{{field type="file" name="result" sources="CAMERA" fileType="VIDEO"}}`
For a complete list of parameters, see the table.
In the output data description, add one of the fields:
Field with the file
type — For uploading one video only. Example:
{"result": {"type": "file","required": true}}
Field with the array_file
type — For uploading several video files at once. Example:
{"result": {"type": "array_file","required": true}}
Run tasks with a video recording button on mobile devices, since they have a built-in camera. Set the Client = Mobile Toloka filter in the pool.
Parameter | Description | Required | Default value |
---|---|---|---|
type | Field type: file — Button for file upload. | yes | no |
name | Attribute for the output data field. Contains the output field name. | yes | no |
sources | Note This parameter applies to the tasks completed in the mobile app. The file source. You can set several values in the format Supported values:
| Yes (when creating tasks for mobile devices) | no |
fileType | Note This parameter applies to the tasks completed in the mobile app. File type. You can set one of the allowed values:
| Yes (when creating tasks for mobile devices) | no |
label | The button label. For example, label="Click me" . | no | Depending on the interface language, “Upload file” (English), “Загрузить файл” (Russian), “Dosya yükle” (Turkish), “Faylni yuklash” (Uzbek). |
validation-show | The position of popup hints (displayed if the response didn't pass validation). The position is relative to the input field.
| no | "top-left" |
camera | Open the camera when the video upload button is clicked:
| no | false |
multipleSelect | The number of files to download at the same time. For the single file upload, set the value to false .For upload of multiple files: 1. Set the value to true .1. In the output data description, add a field with the array_file type or another type of array. | no | true (if the output data description contains a field with the array_file type or another type of array). |
Last updated: February 15, 2023