Repository navigation
BLL Coding
Advanced guide: you don't need coding to browse files or use the fixed filenames in the examples. This page shows how to change filenames or image addresses automatically with Better Logic Library (BLL).
An expression is a small piece of code that BLL turns into a value, such as the current time. FTP Client supports these expressions in the fields below.
- URL in Get an Image Token from URL.
- Path / Filename in Get an Image Token, Save Image Token, and Save File from base64.
The FTP file/folder selectors and the base64 File content do not evaluate these expressions. Put filename expressions in a supported filename field, not in the File field that holds the file contents.
If you are new to BLL expressions, start with BLL's dynamic-text tutorial, then apply the same syntax only in FTP Client's supported fields.
Wrap an expression in {[ ... ]}. The surrounding text remains part of the
value. For example, this filename adds the current time as a number:
doorbell-{[ Date.now() ]}.jpg
Use this in Save Image Token with your chosen destination directory.
Unlike a fixed doorbell.jpg, it normally produces a different filename for
each run. Date.now() returns milliseconds since 1 January 1970. If two saves
happen in the same millisecond (one-thousandth of a second), add another
distinguishing value so they do not use the same name.
For formatted filenames, use BLL's FTP filename examples. Its date reference documents current format codes, locale, and time-zone behavior.
Choose a filesystem-safe pattern and include enough date/time detail to distinguish repeated saves. Older named formats in the original forum example may produce punctuation unsuitable for filenames.
BLL also helps provide FTP Client's image and URL helpers. Check the FTP Connection action references for each card's requirements before building an image or URL Flow.
The separate BLL-to-FTP guide also explains how to save a BLL variable export with FTP Client. This passes file contents between the apps; it does not enable expressions in the base64 File field.
Try the fixed-name camera example first, then use its archive filename when you want to retain successive images.
Support development - If FTP Client is useful to you, you can support its
continued development through GitHub Sponsors,
Patreon,
PayPal, or
bunq.
Thank you!