jatui

MultimodalCaptureField

"Upload a file, or record yourself going over it" — a file drop zone plus MediaCapture as one combined field

Demo

Attach a file, or record yourself going over it

Upload a file

Drag and drop files, folders, or ZIP archives, or click to browse

Accepted: .png, .jpg, .pdf

Max size: 8 MB · Max files: 1

You can drop a folder or ZIP archive

or

Props

PropTypeDefaultDescription
onFileSelected(file: File) => void-Fires once a valid file is picked/dropped
onCapture(result: MediaCaptureResult) => void | Promise<void>-Fires with the finished recording
acceptstring[]image/pdfFile MIME allow-list
maxFileSizenumber8 * 1024 * 1024File size cap in bytes
modes('audio'|'video'|'screen')[]all threeRecording modes offered
maxDurationMsnumber120000Recording auto-stop ceiling
file / fileUrl / fileNameFile | null / string-Already-attached file to display
recordingSummary{kind, durationSeconds} | null-Already-attached recording to display
onFileRemoved / onRecordingRemoved() => void-Shows a remove (×) button when provided