Skip to content

FilePickerFileType

Inherits: Enum

Defines the file types that can be selected using the FilePicker.

Properties

  • ANY

    Allows any file type.

  • AUDIO

    Allows only audio files.

  • CUSTOM

    Allows only the custom file types specified in the allowed_extensions list.

  • IMAGE

    Allows only image files.

  • MEDIA

    A combination of VIDEO and

  • VIDEO

    Allows only video files.

Properties#

ANY = 'any' #

Allows any file type.

AUDIO = 'audio' #

Allows only audio files.

CUSTOM = 'custom' #

Allows only the custom file types specified in the allowed_extensions list.

IMAGE = 'image' #

Allows only image files.

MEDIA = 'media' #

A combination of VIDEO and IMAGE.

VIDEO = 'video' #

Allows only video files.