Skip to content

FilePond Preview ​

ue-filepond-preview renders a list of uploaded file entries as thumbnail cards or icon cards. Image files show a thumbnail fetched from /api/filepond/preview/:uuid; non-image files show a type-appropriate MDI icon. Hovering reveals download and preview actions.

Usage ​

html
<ue-filepond-preview
  :source="attachments"
  :image-size="64"
  show-file-name
/>

Props ​

PropTypeDefaultDescription
sourceObject|ArrayrequiredSingle file object or array of file objects. Each entry must have uuid, file_name, and created_at fields
imageSizeNumber|String64Width and height in pixels for each file card/thumbnail
showFileNameBooleanfalseShow the file name below the thumbnail
showInlineFileNameBooleanfalseShow the file name inline to the right of the thumbnail (takes full row width)
maxFileNameLengthNumber10Maximum characters shown in the file name before truncation
noOverlayBooleanfalseDisable the hover overlay with download/preview buttons
showDateBooleanfalseShow the created_at date on each card

Behaviour ​

  • Images (jpg, jpeg, png, gif, webp): fetches a preview blob from /api/filepond/preview/:uuid and displays it as a v-img.
  • Non-images: displays an appropriate MDI icon (PDF, Word, Excel, or generic document).
  • Clicking a previewable file opens a fullscreen dialog with the file in an <iframe> or <v-img>.
  • Clicking a non-previewable file triggers a download via /api/filepond/download/:uuid.