0.1.2 • Published 1 year ago

directus-extension-file-preview-endpoint v0.1.2

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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
0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago