Button for file upload

To add a file upload button to the task, use the {{field type="file" name="<field ID>"}} component. Field ID must match the field name in the output data description. For example:

{{field type="file" name="result" }}
Full list of parameters

Parameter

Description

Required

Default value

type

Field type: file — Button for file upload.

yes

no

name

Field ID. Must match the field name in the output data description.

yes

no

label

The button label. For example, label="Click me".

no

Depending on the interface language “Загрузить файл” (Russian), “Upload file” (English), “Dosya yükle” (Turkish), “Unggah file” (Indonesian).

validation-show

The position of popup hints (displayed if the response didn't pass validation). The position is relative to the input field.

Supported values:

  • Above the input field: "top-left", "top-center", "top-right".

  • Below the input field: "bottom-left", "bottom-center", "bottom-right".

  • To the left of the input field: "left-top", "left-center", "left-bottom".

  • To the right of the input field: "right-top", "right-center", "right-bottom".

  • Don't display the message ("false").

no

"top-left"

class

The CSS class for the field. For example, class="annotation".

no

".field" ".field_type_file"

Add a field of file type into the output data description. For example:

{
  "result": {
    "type": "file",
    "required": true
  }
}