Pick Files
await win32.pick_files(desc, exts, multiple);Params
desc
let desc = 'Whatever, any files';exts
let exts = ['.txt', '.html', '.md'];multiple
Returns
Example

Last updated
await win32.pick_files(desc, exts, multiple);let desc = 'Whatever, any files';let exts = ['.txt', '.html', '.md'];
Last updated
{
id: String,
//id of the file on win32.run
//which can be used to retrieve the file later
//without invoking the Files Picker dialog. See Get File section
win32_name: String,
//display name of the file on win32.run.
//could be different to name in file.name
win32_path: String,
//path of the file on win32.run.
//it just for display purpose (like in My Computer).
//GET request to win32_path will not return the file content
file: File
//a File object,
//see https://developer.mozilla.org/en-US/docs/Web/API/File
}let results = await win32.pick_files('Any plain text files', ['.txt', '.html', '.md'], true);
//read text content of the first file using File.text()
let content = await results[0].file.text();