Mayanktaker / directus-interface-uuid-file-image

Interface for your UUID fields to attach file/image from media library, in JSON repeater for example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

npx directus-extension build

And then move the built dist/index.js file into a new directory of your extensions/interfaces

Example of usage in a JSON repeater field

Capture d’écran 2021-11-23 à 09 57 53

To do (next version)

When the file's selected, I currently set in uuid field the filename_disk key of the file.

I wanted this to be set by the user into interface options (props.file_key_to_get: String), but I didn't added it yet in src/index.ts.

About

Interface for your UUID fields to attach file/image from media library, in JSON repeater for example


Languages

Language:Vue 97.3%Language:TypeScript 2.7%