overwolf.utils.openFilePicker
Overwolf APIs / overwolf / overwolf / utils / openFilePicker
Call Signature
function openFilePicker(
filter: string,
callback: CallbackFunction<OpenFilePickerResult>,
): void;
Opens a file picker dialog to browse for a file. A url to the selected file will be returned.
Parameters
| Parameter | Type | Description |
|---|---|---|
filter | string | A file filter. Supports wild cards () and seperated by commas (,). Ex. myFile.,.txt |
callback | CallbackFunction<OpenFilePickerResult> | Called with a url to the selected file. |
Returns
void
Call Signature
function openFilePicker(
filter: string,
initialPath: string,
callback: CallbackFunction<OpenFilePickerResult>,
multiSelect: boolean,
): void;
Opens a file picker dialog to browse for a file. A url to the selected file will be returned.
Parameters
| Parameter | Type | Description |
|---|---|---|
filter | string | A file filter. Supports wild cards () and seperated by commas (,). Ex. myFile.,.txt |
initialPath | string | Path to start browsing from |
callback | CallbackFunction<OpenFilePickerResult> | Called with a url(s) to the selected file(s). |
multiSelect | boolean | Allow selection of multiple files |
Returns
void