Skip to main content

pick_file

Function pick_file 

Source
pub fn pick_file(accept: &str, on_file: impl FnOnce(String, Vec<u8>) + 'static)
Expand description

Opens a browser file picker filtered by accept and reads the chosen file’s bytes into on_file.