FileUploadDefaults

Defaults for the FileUpload components.

This object centralises default text, icon mapping and layout behaviour to keep the public API of file upload components small and consistent with other Spark components.

Functions

Link copied to clipboard
fun iconFor(mimeType: MimeType?, name: String): SparkIcon

Maps a UploadedFile to an icon representing its type.

Link copied to clipboard

Opens a file with the system's default application for that file type.