Context object.
Selector for File Input element.
Optional
options: WaitForSelectorOptionsThe file as an Array of blobs for files contained in element.
const attachments = await getDataFromFileInput(ctx, '.attachment');
const pdfs = attachments.filter(f => f.type === 'application/pdf');
const invoices = pdfs.filter(f => f.name.startsWith('invoice-'));
// ...
Generated using TypeDoc
Returns the files attached to a file input.