Function select

Source
pub fn select(callback: impl FnOnce(SelectedFile) + 'static)
Expand description

Show a select file dialog

The callback may be called at any moment in the future. The callback will not be called if user cancels the dialog. On the web this will only work if called during user interaction.