Skip to content

probe-web / @probe-web/artifacts / pickFile

Function: pickFile()

ts
function pickFile(opts?): Promise<FileArtifact>;

Defined in: index.ts:174

Open the file picker (user gesture required) for one firmware image. By default it offers .elf, .hex, .bin, .uf2 and .axf; extensions replaces that list and description labels it. Rejects if the API is missing or the user cancels.

Parameters

ParameterType
opts{ description?: string; extensions?: string[]; }
opts.description?string
opts.extensions?string[]

Returns

Promise<FileArtifact>