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_extensionslist. -
IMAGE–Allows only image files.
-
MEDIA– -
VIDEO–Allows only video files.
Properties#
ANY = 'any'
class-attribute
instance-attribute
#
Allows any file type.
AUDIO = 'audio'
class-attribute
instance-attribute
#
Allows only audio files.
CUSTOM = 'custom'
class-attribute
instance-attribute
#
Allows only the custom file types specified in the allowed_extensions list.
IMAGE = 'image'
class-attribute
instance-attribute
#
Allows only image files.
VIDEO = 'video'
class-attribute
instance-attribute
#
Allows only video files.