storagestringrequiredAn object storage.
pathstringrequiredWhere to write it.
contentanyText content.
contentBase64stringBytes. For anything that is not text.
One of content and contentBase64 is required.
{ id: "save", type: "file.save", config: {
storage: "…", path: "digests/{{input.week}}.pdf",
contentBase64: "{{steps.pdf.output.base64}}" } }{"id": "save", "type": "file.save", "config": {
"storage": "…", "path": "digests/{{input.week}}.pdf",
"contentBase64": "{{steps.pdf.output.base64}}"}}Binary goes in contentBase64
A PDF or an image passed as content is written as the string it is not. The conversion step hands back base64 precisely so it can go straight into this field.
Output
{{steps.save.output.key}}
{{steps.save.output.size}}
{{steps.save.output.storage}}"{{steps.save.output.key}}"
"{{steps.save.output.size}}"
"{{steps.save.output.storage}}"It counts against the storage
A write past the ceiling is refused. On a scheduled chain that writes every run, that is a failure waiting for a date — worth a usage check now and then.
Against document.save
This writes a file. document.save writes it and indexes it, so semantic search can find it later.