directus-extension-url-file-import-temp
v1.0.3
Published
Add URL File Import operation to Directus Flows with custom headers, methods, folder id etc
Downloads
4
Maintainers
Readme
Directus Extension URL File Import (Operation)
This extension adds a URL File Import Operation to Directus.
It is similar to the import function in the FilesService with the following (extra) features.
Multiple HTTP Methods
You can specify the HTTP method like 'GET,POST' etc.
Import URL
Set the URL from where you want to import any file from the web.
HTTP Headers
You can set HTTP Headers. Some external URL's will need API keys or Auth tokens. You can specify these here.
Folder
This can be used to enter the (virtual) folder id where the file should be linked to in Directus.
Body
You can send a HTTP Body if needed.
Installation
First build your extension
cd directus-extension-url-file-import
npm run build
Then make sure to copy this folder into /directus/extensions (eg. docker) or /directus/api/extensions (local) and restart your app.