Skip to content

Directus custom endpoint extension allowing to download and save folder content or multiple files as zip.

License

Notifications You must be signed in to change notification settings

euryecetelecom/directus-extension-downloadfolderorfilesaszip-endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

directus-extension-downloadfolderorfilesaszip-endpoint

Directus custom endpoint extension allowing to download and save folder content or multiple files as zip.

Internal Directus authentication / permissions is handled using configured directus_folders permissions.

This extension is based on recent comment on associated RFC: directus/directus#20601 (comment).

Develop:

npm run dev

https://docs.directus.io/extensions/creating-extensions.html

Publish:

npm run build && npm publish

https://docs.directus.io/extensions/creating-extensions.html

Install:

pnpm install directus-extension-downloadfolderorfilesaszip-endpoint

https://docs.directus.io/extensions/installing-extensions.html

Usage:

Download content of a directory as Zip file:

GET /directus-extension-downloadfolderorfilesaszip-endpoint/folders/$FOLDER_ID

Download specific files as Zip file:

POST /directus-extension-downloadfolderorfilesaszip-endpoint/files Payload: [$FILES_IDs]

About

Directus custom endpoint extension allowing to download and save folder content or multiple files as zip.

Resources

License

Stars

Watchers

Forks

Packages

No packages published