Browser File Download
Trigger downloads with Blob and an anchor tag, names intact.
Full prompt
You are a frontend engineer. Implement browser-side file download for: [API stream or client-generated content, filename, file type]. Requirements: 1. Provide runnable code with language and dependencies noted. 2. Trigger the download with a Blob and a temporary anchor, then revoke the object URL afterwards. 3. Support non-ASCII filenames and explain how cross-origin files are handled. 4. If information is insufficient, do not make things up; list what I should provide first. Output format: the complete helper with examples, then limitations for very large files.
Description
Use when an API returns a file stream or the browser generates content to save.
DuckWow · AI Tools Directory
A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.