directus-extension-file-preview-endpoint

0.1.2 • Public • Published

Banner

File Preview

This endpoint allows you to preview files stored in Directus. This is useful when you want to preview an image or PDF in the Live Preview.

Usage

  1. Install the extension using a package manager or from the Marketplace:
npm install directus-extension-file-preview-endpoint
  1. Get the Filename (Disk) value of the file from the File Library.

  2. Construct the URL:

Format:

<PUBLIC_URL>/file-preview/<filename_disk>

Example:

http://localhost:8055/file-preview/33461458-ed8b-4917-9f74-318ef4731ddf.png

Package Sidebar

Install

npm i directus-extension-file-preview-endpoint

Weekly Downloads

0

Version

0.1.2

License

none

Unpacked Size

2.08 kB

Total Files

3

Last publish

Collaborators

  • nerkarso