Skip to main content

File Picker 8base

The File Picker 8base component allows a user to select a file to upload to an 8base workspace.

If the uploadOnChange property is enabled, the filename and fileId are passed to the application backend.

The filename is the file's actual name, and the fileId is a reference to the file's location on the backend. This information is helpful if, for example, you want to display the file as an avatar on your application.

Properties

NameTypeDefaultDescription
8baseBackendWorkspacestringSpecifes the name of an 8base workspace.
authorizationHeaderstringSpecifies an 8base API token or an ID token (JWT token).
disabledboolfalseIf true, the file picker 8base is disabled.
acceptedFilesstringDefines a comma-separated list of allowed file types.
maxFileSizenumberDefines the maximum size of a file.
uploadOnChangeboolfalseIf true, the onChange event is used to upload files.
on this page