OpenFilePicker
Opens the platform file picker and emits the chosen file downstream, shaped by outputType. fileType restricts what can be picked; pickMode currently only offers a single selection. Does not consume incomingData. Dispatches onSuccess (carrying the content, shaped by outputType) when a file was picked and read; onCancelled (no data) when the user dismisses the picker without choosing a file; onFailure (carrying the thrown exception) when mapObject() decoding fails or the picker itself throws.
Parameters
Unique identifier of this event. Defaults to a random id.
Trigger that fires this event, built via EventTriggers.
Kinds of files selectable in the picker — imageFileType, videoFileType, imageAndVideoFileType or fileFileType.
Selection mode — currently only singlePickMode. Defaults to single.
Child events chained after this one, wired to its triggers (onSuccess, onCancelled, onFailure).
Shape of the content delivered as incomingData — platformFile, arrayOfBytes, flowOfBytes, mapObject or base64. Defaults to the platform file handle.