Package dev.fritz2.components.file

Types

Link copied to clipboard
typealias FileReadingStrategy = (File) -> Flow<File>

function for reading the jsFile to a File with File.content as a String

Link copied to clipboard
abstract class FileSelectionBaseComponent

This abstract class is the base configuration for file inputs. It has two specific implementations:

Link copied to clipboard
open class MultiFileSelectionComponent : FileSelectionBaseComponent, Component<Flow<List<File>>>

Specific component for handling the upload for an arbitrary amount of files.

Link copied to clipboard
open class SingleFileSelectionComponent : FileSelectionBaseComponent, Component<Flow<File>>

Specific component for handling the upload for one file at once.