files
65 blocks in 15 groups. Open a block for its pins, an example and how it behaves.
encoding
file
- stream xml from file
conditionv10.4.28 - stream array from file
conditionv10.4.28takes a json file with an array as root element and runs the attached function in batches - from path
conditionv15.0.0Turns a path (or list of paths) into a file, so a stored path can be handed to the file blocks. A leading slash means the entity root. Missing paths are left out and reported on success rather than failing — deleting something already gone is not an error. - download
conditionv10.5.10download a custom file from a given endpoint
file actions
- multiple
filev10.4.28Merge an array of files together. - find by extension
filev14.0.5Filters a list of files by extension (e.g. mp4, jpg, png). Separate alternatives with | (e.g. png|jpg|gif). Returns matching files.
file assets
- get file from assets
conditionv10.4.28makes files from assets accessible in blueprints - custom upload
filev10.4.28Use a custom provided file.
file conditions
- if
filev10.4.28If.. then.. else.. - elseif
filev10.4.28If.. then.. else if.. default.. - is file type
conditionv14.0.5Checks whether the given files match a specific extension (e.g. mp4, jpg, png). Separate alternatives with | (e.g. png|jpg|gif). - exists
conditionv12.0.7Checks if the given files exist.
file data
- get data
valuev13.0.5Retrieve the contents of the given file - get link
valuev10.5.10Returns the link of a given file which can be used as a img src. Will only work with public files.
file encoding
- hash
conditionv15.0.0Computes a content hash (sha256 by default; md5/sha1 supported) for each given file — e.g. to detect duplicate uploads before storing them. - get base64
valuev10.4.28Returns the base64 of the given file
file encryption
- cipheriv decrypt
conditionv10.4.28Decrypts the given file using a specific algorithm and key for secure storage - cipheriv encrypt
conditionv10.4.28Encrypts the given file using a specific algorithm and key for secure storage
file form
file modification
- delete
conditionv10.4.28Deletes the given files. - file info
valuev10.4.28Gets basic file information. - file exif
conditionv14.0.2Gets the file EXIF information. - pdf images
conditionv14.0.2Lists all images included in the PDF. - pdf to text
conditionv14.0.2Converts the given PDF to text. - write
conditionv10.4.28Generates or overwrites a file with the new content - update name
filev10.4.28Sets a custom name for all files. If multiple files are given the index will be appended - append
conditionv10.4.28Appends content to the given file - copy
conditionv15.0.0Copies the given files into a destination directory, keeping each file's original name. Thedestination directoryis a folder path (created if missing), not a full path including the filename — e.g./public/uploadscopieshero.pngto/public/uploads/hero.png. Place the directory under/public/…to make the copies publicly servable via/static/…. To rename the copy, set the optionalfilenamepin (single source file only). To fan one file out to several full paths and/or names at once, use thefile spreadblock instead. - pdf to image
conditionv14.0.2Converts the given PDF to image files. - rename
conditionv10.4.28Renames the given files. - pdf color
conditionv14.0.2Retrieves the color from the PDF. - pdf fonts
conditionv14.0.2Retrieves the used fonts inside a PDF. - get extension
valuev12.1.1Grabs the file extension and mime-type - analyze pdf
conditionv14.0.4Analyzes the PDF with the given profile. - spread
conditionv15.0.0Copies a single source file to multiple destination paths, creating a real copy for each. Each entry inpathsis a full destination path including the filename (e.g./public/uploads/hero.png), so one upload can be fanned out to several locations and/or names at once. - move
conditionv10.4.28Moves the given files to a new destination. - move to public
conditionv10.4.28Moves the given files to a new public destination. - pdf info
conditionv14.0.2Retrieves basic PDF info. - set cache control
conditionv10.4.28Changes how a PUBLISHED public-media file may be cached, on object storage and at the edge, without re-uploading it. Giveno-storefor media that must never be kept anywhere but its origin — a one-time photo the moment its message becomes one-time — orpublic, max-age=31536000, immutableto make it cacheable again. The resized variants of the file ({name}_{w}x{h}.{ext}, as resize image writes them, named after the file'sfilenameas well as its path) are re-tagged with it. Only files in the trees the media mirror serves; a file outside them answersNOT_MIRRORED, a file that never reached the storeOBJECT_MISSING.
file parsing
- parse xls/x
conditionv13.0.5Parses a xls / xlsx file. - parse xml
objectv12.0.4Parse an XML file into an object with XML attributed data - build csv
filev13.0.7 - build xls/x
conditionv13.0.5Generates a xls / xlsx file. - parse xls/x to array
conditionv13.0.5Parses a xls / xlsx file and returns the first worksheet as an array. - build pdf from page
filev13.0.8Generates a PDF based on a given page. It is possible to fill the header or footer of the PDF by using the #pdf-header or #pdf-footer IDs. - split csv
filev13.0.8Splits a CSV file into multiple smaller files. - build pdf
filev12.0.3 - parse mt940
arrayv10.4.28Parse a MT940 defined XML file into an array of statements. - generate from value
conditionv10.4.28Generates a file from the given value. - parse csv
arrayv10.3.11Parse a CSV file into an array of objects.
image
images
- convert to webp
filev13.0.5Convert any image to webp format, this may can take multiple seconds - change color to transparent
conditionv10.4.28Updates a HEX color within the image to transparent - get image size
numberv12.1.1Returns the dimensions of the image given. - blurhash
valuev15.0.0Compute a blurhash placeholder for the given images — a ~30 character string a client paints as a blur while the real image loads - merge
conditionv12.1.1Merge two images using sharp. - get video size
numberv15.0.0Returns the dimensions of the video given (MP4-family containers). - detect ai image
conditionv15.0.1Reads what an image says about how it was made, without any external service: C2PA content credentials, the IPTC digital source type and AI-system fields, and the generation records Stable Diffusion tools write. Names the generator (for example GPT-4o, Adobe Firefly, Imagen 4 or a Stable Diffusion checkpoint) and its maker. Reads PNG, JPEG and WebP. A screenshot or re-encode strips this metadata, soai generatedoff means nothing was found, not that a person made the image.
lxd
- file info
lxdconnectionv13.0.9Get metadata for a file. - post file
lxdconnectionv13.0.9Create or replace a file. - post text file
lxdconnectionv13.0.9Creates or replaces a file with a given text content. - delete file
lxdconnectionv13.0.9Deletes a file.