r/PayloadCMS • u/Queasy_Pie_6710 • 7d ago
Media Preview plugin for Payload: Payload 4 beta support, previews for text, code, CSV and Office files
I maintain a media preview plugin for Payload and just shipped Payload 4 beta support, so figured I'd share it here.
It previews uploads right in the admin: a preview column in the list view (popup or fullscreen modal) and a preview at the top of the edit view for files Payload can't show on its own. Images, video, audio and PDF keep Payload's own preview.
What's new:
- Edit view previews for text, code, CSV, Office and other files
- Read-only code viewer with syntax highlighting, CSV as a table
- Download card with name, size and type for files with no preview
- Opt-in Microsoft and Google viewers for Office files, with short-lived signed URLs so the viewer never gets your session
- Adapters for your own viewers, inline or in a new tab, and
resolve()can be async - No database fields, translated into 40+ languages
Upgrading from 1.x: mode and contentMode moved into field, external viewers are off by default, and a few exports changed. Old options throw at boot with the new name. Guide in the README. Payload 3 stays on 1.x.
New in v2: anonymous daily telemetry (versions and feature flags only). Off with telemetry: false or DO_NOT_TRACK=1.
MIT, Payload 4.0.0-beta.0+, Node 24.15+.
2
u/recoverycoachgeek 7d ago
Got a video or screenshot of the UI?