Overview
Allow users to specify the output filename before downloading. Currently the download uses a generic name like 'output.mp4'.
Implementation
In DownloadResult.tsx, add a text input for the filename:
<input
type="text"
value={filename}
onChange={(e) => setFilename(e.target.value)}
placeholder="my-video"
/>
<span>.mp4</span>
Use this as the download attribute on the anchor tag:
<a href={result.blobUrl} download={`${filename}.mp4`}>
Acceptance Criteria
Overview
Allow users to specify the output filename before downloading. Currently the download uses a generic name like 'output.mp4'.
Implementation
In
DownloadResult.tsx, add a text input for the filename:Use this as the
downloadattribute on the anchor tag:Acceptance Criteria