WordPress
patterns/downloads-static.php
✔ Core
✔ Custom
- Use: a tidy list of documents to download.
- Not for a single file, where a link in running text is enough.
- Source: files from the media library, titled by hand.
- Content: an optional topic, a heading and an optional subline; 2 or more files, each a title and the file itself, whose name and size are read from it.
Figma
Docs
- Display the file name, file extension, and file size so that it is clear before clicking what will be downloaded and how long the download will approximately take.
- Use the HTML
downloadattribute to force the download of document types that the browser would otherwise render itself (PDF, JPG, etc.) - Automatic previews of PDF files and similar may require additional server modules such as ImageMagick.
