Experimental
Returns the files attached to a file input.
Context object.
Selector or XPath for File Input element.
Optional
The file as an Array of blobs for files contained in element.
const attachments = await mwFileFromInput(ctx, '.attachment');const pdfs = attachments.filter(f => f.type === 'application/pdf');const invoices = pdfs.filter(f => f.name.startsWith('invoice-'));// ... Copy
const attachments = await mwFileFromInput(ctx, '.attachment');const pdfs = attachments.filter(f => f.type === 'application/pdf');const invoices = pdfs.filter(f => f.name.startsWith('invoice-'));// ...
Returns the files attached to a file input.