File Download Sandbox
Test different methods for triggering file downloads in the browser.
Generating test file...
1. Direct Download (Link)
This uses a standard HTML `` tag with the `download` attribute. Most browsers will download this file directly without a prompt.
2. 'Save As' (File Picker API)
This button uses the File System Access API (`showSaveFilePicker`) to explicitly open a 'Save As' dialog, giving you control over the file name and location.
3. Direct Download (Button)
This button's `onClick` handler programmatically creates, clicks, and removes an `` tag to initiate the download.
4. 'Save As' (File Picker API)
Same mechanism as the button above, using the File System Access API to ensure a 'Save As' prompt appears for the user.