Usage ‐ Download file - Attacler/TextToAnything-Directus GitHub Wiki
Download files based on a flow
The interface allows you to download a file based on a flow. This is not limited to Text to anything, but can download any file that the user has access to.
Interface
When adding a field you can select the download interface:
After selecting this the following fields will be shown:
- Label, this is the button label of the download button
- Flow, the flow will be triggered and is expected to give back a file id as text (see below for more explaination)
Example Flow
The flow should be a webhook with the post method:
Then the last node should return the file id that the user should download. Here is a full example:
By default all Text to anything operation will return the file ID.