31
Flows support for saving binary data as a file
Source: directus/directus#23555 · opened by @JSDA123
Summary Add support in Flows to save binary data as a file in Directus that is obtained from a third-party APIs where the binary data is included in the response body. Basic Example In Flows, make a webhook POST to an external API and receive the response body which includes a file in binary format. The new feature would allow using a subsequent operation to save the file in Directus by referencing the binary data, for example as {{$last.data}}. Motivation The ability to work with binary data could apply to many use cases, especially PDF generation, for example creating a PDF invoice. This use case wants to use flows to send a data array (or an HTML document) to an external PDF generation API (such as Stirling PDF). The external API returns a generated PDF in the response body in binary format. The new feature would allow handling of the received binary data and save it as a file in directus. Attempting to use a flows webhook to the /files endpoint to create a new file fr…
No pledges yet. Be the first to back this.
Comments
Similar requests
Import and export option for flows
82 votes · 0 comments
Insufficient documentation about blocking and non-blocking flows
3 votes · 0 comments
Enhancing Directus Flows: Versioning, Archiving, and Improved Manageability
28 votes · 0 comments
Disable flows from running on a specific directus instance
2 votes · 0 comments
Add Sorting for Manually Triggered Flows
3 votes · 0 comments
No comments yet.