FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests