Use File Tile...
- To display user-initiated file uploads.
- To show the upload progress and status of a file.
Don't use File Tile...
- To initiate uploads. Use File Input or File Dropzone instead.
- To show the progress of uploading.
Default
The File Tile component is designed to display individual files.
The preview has been updated.
Skin
Use the skin
prop to specify the state of the File Tile. The default is standard
. Use queued
for files that are waiting to be loaded. Use loading
for files that are currently being loaded.
The preview has been updated.
Error
To show an error on a File Tile, set skin="error"
and set an errorMessage
. Ensure that a File Tile with an error is always wrapped in a FormField
in order to access the form context.
The preview has been updated.
List
The default UI layout is layout="thumb"
which displays the File Tile as a 1:1 square. Use layout="list"
for a more condensed list view that stacks vertically.
The preview has been updated.
Thumbnail
If the file is an image, pass a ResponsiveImage
as a child to the FileThumbnail
. File Tile handles the aspect ratio of the image.
The preview has been updated.
Description
Use fileDescription
to show the file size. e.g. 3.56 MB
. It can also be used to show other metadata such as file dimensions. e.g. 600px x 400px
.
The preview has been updated.
Deleting files
The FileTileDeleteButton
subcomponent allows users to control the files they upload. This subcomponent is optional but recommended in most use cases.