Connecting to Yandex.Disk

If your tasks include images or other files with data, it is convenient to store them on Yandex.Disk. You can use only Yandex.Disk linked to the same account you are using in Toloka.

Connecting to Yandex.Disk

To use Yandex.Disk as a data source:

  1. Click Add Ya.Disk on the profile page (the External Services Integration tab) and allow Toloka access to Yandex.Disk.

  2. Click Add proxy and fill in the fields:

    Field

    Description

    Unique name

    Name of the data source. The name will be inserted in the file URLs. Allowed characters: Latin letters, numbers, dashes (“-”).

    Type

    Choose “Yandex.Disk”.

    Permissions

    Level of access to files:

    • “Public” — All Toloka performers (appropriate for files with instructions).

    • “Private” — Only performers who received a task with this file (appropriate for task content).

    Folder name

    The name of the folder on Yandex.Disk. A folder with this name will be created on Yandex.Disk automatically (Applications/Yandex.Toloka/<folder name>). Slashes are not allowed (“/”) in the folder name.

  3. Click Save.

The folder Applications/Yandex.Toloka/<folder name> will be created on Yandex.Disk. Upload images or other files for tasks to it.

Adding files from Yandex.Disk

To add an image to the project instructions, provide a link in the format <unique name>/<file name>. For example, pics/image1.jpg.

To add a file, such as an image or audio, to the task interface:

  1. Set the string data type for the input data field in which you will pass the file link.

  2. Use HTML tags:
    • <img> to insert an image.
    • <audio> to insert an audio recording in the player.
    • <video> to insert a video recording in the player.
    In the src attribute, specify the proxy Handlebars component and the input data field ID. For example: <img src={{proxy image}} width="400">, <audio src={{proxy audio}} controls>.
  3. Include relative links to Yandex.Disk files in the TSV file with tasks. For example, pics/image1.jpg.

Note. If your files are stored on an external service, specify the absolute links, and use a special component to insert an image.