Downloading files
To download an uploaded file, you need to use the file identifier, the _id value specified in the file metadata when the file is uploaded to storage. Download File From Storage node is used to get the file contents from storage. You can either return the downloaded file as a response or use it in other nodes, for example, attaching it to an email message.
.png)
Using the file identifier, "Download File From Storage" node downloads the file from storage. If the file is successfully downloaded triggers the found output link point with the file data; otherwise, it triggers the notFound output link point.
In the below example, we download an invoice from storage and return it as a response. The file identifier is provided as an endpoint path parameter. If the file is not found, we return an error response.