Attachment viewer
The selected row's files shown large, images and PDFs in the widget; or every row's files in a gallery.
Add it to a document
In Grist, add a widget, choose Custom, then Enter Custom URL and paste:
https://gristwidgets.com/widgets/attachment-viewer/v0/It takes every v0.x release, fixes and new features; a breaking change comes as a new major version, at a URL of its own. The same widget is also served at https://arthurblanchon.github.io/grist-widget-sdk/widgets/attachment-viewer/v0/.
What it does
People who keep files in Grist (photos of a site, scanned invoices, contracts) see them large, not as the attachment cell's small thumbnails. In viewer mode, it shows the selected row's files one at a time: images and PDFs in the widget, other files as a download. In gallery mode, it shows the files of every row in a grid; a file opens in the viewer and selects its row.
Columns
| Column | Type | Use |
|---|---|---|
Files | Attachments | the files shown |
Caption, optional | Any | a row's caption in the gallery |
Access
full: a file's bytes are read from Grist's REST API with a short-lived access token, which Grist gives only to a widget with full access. It also saves the mode (viewer or gallery) in the widget's options. It writes nothing to the document.
Changes
0.2.3 · 2026-11-28
- Built with the latest version of grist-widget-sdk: nothing changes on screen.
0.2.2 · 2026-11-21
- No more linking alert ("Widget linking") in a section that follows no other, or that no section follows: the widget works either way.
0.2.1 · 2026-11-21
- The widget loads again: Grist started serving its plugin script as a development build that this widget's security policy refuses, which left every copy on "The Grist plugin did not load". The widget now ships its own copy of Grist's plugin script, a fixed version without that problem, and runs no script from anywhere else.
0.2.0 · 2026-11-16
- "Report a problem": when a change fails to save, or if the widget ever stops working, a link opens this widget's bug form, filled in with its name and version. Nothing is sent from your document: you write what you choose.
- If the widget stops working, it says so, with a button to reload it, instead of showing an empty panel.
0.1.1 · 2026-11-15
- The widget's page carries a Content Security Policy: only its own code and Grist's plugin API run in it, which keeps a document's content from running anything there.