Appearance
Download Link
The /d/:key path serves files as downloads. The browser will prompt to save the file instead of displaying it inline.
Base URL
Downloads are served from https://cdn.atiru.io by default. If you configured a custom CDN, use your public_url_base instead.
Path: GET /d/:key
The :key is the file's file_id from the upload response.
Behavior
- Content-Disposition:
attachment— triggers a download in the browser - Filename: Uses the original filename from upload, or the file ID if no name was provided
- No transformation: Files are served as stored. No resize or format conversion (unlike
/m/for images)
Examples
Direct link (triggers download)
https://cdn.atiru.io/d/abc123HTML link
html
<a href="https://cdn.atiru.io/d/abc123" download>Download file</a>curl
bash
curl -O -J "https://cdn.atiru.io/d/abc123"The -O flag saves to a file, and -J respects the Content-Disposition filename.
Supported file types
All public files can be downloaded via /d/:key, including:
- Images
- Documents (PDF, Word, Excel, etc.)
- Archives (ZIP, RAR, etc.)
- Audio and video
- Fonts
- Any other allowed upload type
Caching
Responses include Cache-Control: public, max-age=31536000 (1 year).
Authentication
No authentication is required. The file must be public (is_public: true). Private files return 404.