Repository navigation
Flow Actions Save Image Token
FTP Connection / Flowcards / Actions / Save Image Token
Use this card to save a picture, such as a camera snapshot, to your FTP server. Pass the camera's Image token into the card rather than a text link to the image.
| Argument | Description |
|---|---|
| Device | The destination FTP Connection. |
| Image token | Image supplied by a camera app or another action. |
| 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. |
This card returns no Flow tokens. It completes after the upload. Use Get file URL afterward for a download link, or Get an Image Token to retrieve the saved image.
The destination must include a filename; the app does not automatically use the Image token's name. The parent directory is created if needed, subject to server permissions. Reusing a fixed filename replaces the previous image.
Use a filename extension that matches the supplied image. The card saves the image exactly as provided; changing the filename does not convert its format. Keep the source Image token available until the save finishes.
Warning
Saves replace a file when the destination path already exists. Use a test folder and check the final filename before saving important images.
Supply a camera's Image token, select the destination folder, and use
doorbell-{[ Date.now() ]}.jpg as the filename to retain successive snapshots.
Runs in the same millisecond can still collide; add another distinguishing
value if needed.
See the camera snapshot workflow, BLL coding, and the community discussion.
Support development - If FTP Client is useful to you, you can support its
continued development through GitHub Sponsors,
Patreon,
PayPal, or
bunq.
Thank you!