file: appendAppends content to the given file
Name of the file within your assets, this could include the path like public/export.xml
file: writeGenerates or overwrites a file with the new content
Name of the file within your assets, this could include the path like public/export.xml
file: get file from assetsmakes files from assets accessible in blueprints
local path to the asset (e.g. /public/images/image.png
) size in bytes of the asset file: get dataRetrieve the contents of the given file
The encoding of the data, can be ascii or utf8
Default:
utf8
file: get extensionReturns the file extension.
file: copyCopies the given files to a new destination.
Overwrites file at destination if it exists.
Default:
true
file: moveMoves the given files to a new destination.
file: parse xmlParse an XML file into an object with XML attributed data
Transforms the keys to lowercase
Default:
false
Strips the xml namespace prefix from the keys
Default:
false
Parses integer-like strings and float-like strings as floats
Default:
false
Parses boolean-like strings to booleans
Default:
false
file: parse MT940Parse a MT940 defined XML file into an array of statements.
The MT940 file to be parsed. An array of objects containing the parsed statements of the provided MT940 file. file: generate from valueGenerates a file from the given value.
The extension of the file, e.g. pdf
. The contents of the file, e.g. JSON, XML or CSV data. The encoding of the data, can be ascii or utf8
Default:
utf8
Use a windows EOL character (\r\n) instead of the mac / linux EOL character (\n) File succesfully created? file: build XLS/XGenerates a xls / xlsx file.
The extension of the file, e.g. xls
or xlsx
. The headers will be used for the first row. The values to be set in the excel sheet. The headers will be used to select the data. response: reply with fileHTTP Status Code to return on this response. Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }] A blueprint file-type to be returned on this connection. Root directory for relative filenames. Access to files will be restricted to this folder and its subfolders. Make sure the filepath does not contain the root. This should not be dynamic due to security reasons. file: update nameSets a custom name for all files. If multiple files are given the index will be appended
file: get linkReturns the link of a given file which can be used as a img src. Will only work with public files.
file: parse CSVParse a CSV file into an array of objects.
The separator used to split values on a row.
Default:
,
If set to true the action will try to detect the separator based on the first few lines. If it fails to do so it will fall back to the given or default separator
Default:
false
Indicates if the CSV has headers or not, we will use the headers to create objects using these keys if true is given. Array of headers to be used in case has_headers
is set to false. file: downloadCould be a FTP or HTTP(s) host. e.g. ftp://username:password@host/file.pdf
Could have user
, password
and send_immediately
for DIGEST Array of files retrieved from endpoint file: build PDFThe name this file should get and be seen as by the user. Allows you to set a custom language for the PDF. This language only applies to UI blocks and not to value translations The header that will be rendered on the PDF. The height the header will receive in the PDF. The footer that will be rendered on the PDF. The height the footer will receive in the PDF. The format used for the PDF. The possible values are: Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6
Default:
A4
Sets a custom height for the PDF. The setting should be given with units (px, in, cm, mm) Sets a custom width for the PDF. The setting should be given with units (px, in, cm, mm) Paper orientation
Default:
false