Skip to content

Flow Actions Save File from base64

Arie J. Godschalk edited this page Nov 15, 2026 · 4 revisions

Save File from base64

FTP Connection / Flowcards / Actions / Save File from base64

Purpose

Use this card to save a file supplied as base64: file contents represented as encoded text that another app can pass along. The card turns that text back into a file and uploads it to your FTP server. You can use it for text, HTML, exported documents, audio, or other encoded files.

Arguments

Argument Description
Device The destination FTP Connection.
File Raw base64-encoded file content, usually supplied by a text token. Not a filename or plain text.
Directory Destination directory selected with the FTP picker. May be omitted when a full path is supplied.
Filename / Path Destination filename, including its extension, relative to the selected directory; or a full FTP path without a directory selection. Supports BLL expressions.

Outputs

This card returns no Flow tokens. It completes after the upload; use Get file URL afterward if you need a download link.

Behavior and limitations

The app creates the containing folder if needed, provided your FTP account is allowed to create it. Include a filename, not just a folder. Reusing a filename replaces the existing file; this action does not add content to its end.

Use raw base64, not a data:...;base64, URL. Do not encode already encoded data again. BLL expressions work in the filename/path, not in the File contents. Changing the filename's extension does not convert the underlying format.

Example

Warning

Use an unused test filename. Running the save again with the same path replaces the existing file.

To save a text file containing 20, supply MjA= in File, select the destination directory, and enter temperature.txt as the filename.

Copy this into File:

MjA=

For longer text or HTML, generate the base64 with Buffer.from(text, 'utf8').toString('base64') in HomeyScript. See the text and HTML examples and export workflow.

Clone this wiki locally