Skip to content

File Trigger

Props

API reference for File Trigger. For usage examples, see the React tab.

NameTypeDefault
acceptDirectoryboolean

Enables the selection of directories instead of individual files.

acceptedFileTypesreadonly string[]

Specifies what mime type of files are allowed.

allowsMultipleboolean

Whether multiple files can be selected.

childrenReactNode

The children of the component.

defaultCamera"environment" | "user"

Specifies the use of a media capture mechanism to capture the media on the spot.