Toloka documentation

Accept

toloka.client.project.template_builder.fields.MediaFileFieldV1.Accept | Source code

Accept(
    self,
    *,
    file_system: Optional[Union[BaseComponent, bool]] = None,
    gallery: Optional[Union[BaseComponent, bool]] = None,
    photo: Optional[Union[BaseComponent, bool]] = None,
    video: Optional[Union[BaseComponent, bool]] = None
)

Adds different buttons for four types of uploads.

Parameters Description

Parameters Type Description
file_system Optional[Union[BaseComponent, bool]]

Adds a button for uploading files from the file manager.

gallery Optional[Union[BaseComponent, bool]]

Adds a button for uploading files from the gallery.

photo Optional[Union[BaseComponent, bool]]

Adds a button for uploading images.

video Optional[Union[BaseComponent, bool]]

Adds a button for uploading videos.