Function: capturedFromFile()
function capturedFromFile(file, origin?): CapturedFile;
Defined in: components/capture.tsx:548
A CapturedFile for bytes the browser handed us directly (fallback inputs).
Parameters
| Parameter | Type | Default value |
|---|---|---|
file | File | undefined |
origin | | "camera" | "gallery" | "viewfinder" | "recorder" | "picker" | "pad" | "unknown" | 'picker' |
Returns
CapturedFile