Skip to main content

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

ParameterTypeDescription
filterstringA file filter. Supports wild cards () and seperated by commas (,). Ex. myFile.,.txt
callbackCallbackFunction<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

ParameterTypeDescription
filterstringA file filter. Supports wild cards () and seperated by commas (,). Ex. myFile.,.txt
initialPathstringPath to start browsing from
callbackCallbackFunction<OpenFilePickerResult>Called with a url(s) to the selected file(s).
multiSelectbooleanAllow selection of multiple files

Returns

void