We found 31 matches for: files

An overview of all files blocks currently available, updated daily!

file: get base64

Returns the base64 of the given file

In-pins

file

Out-pins

base64
Data URL
file: append

Appends content to the given file

In-pins

flow
file
Name of the file within your assets, this could include the path like public/export.xml
content
encoding


Default:
utf-8

Out-pins

flow
success
file
error
file: write

Generates or overwrites a file with the new content

In-pins

flow
file
Name of the file within your assets, this could include the path like public/export.xml
content
encoding


Default:
utf-8

Out-pins

flow
success
file
error
file: merge images

Merge two images using sharp.

Files Documentation

In-pins

flow
images
default options
options per image
Will take the options based on the image index. Index 0 will be the first image overlayed.

Out-pins

flow
success
error
file
image: change color to transparent

Updates a HEX color within the image to transparent

In-pins

HEX Color
The HEX color to remove from the image, e.g. #FFFFFF
file
Image to remove HEX color from

Out-pins

success
file
error
file: file info

Gets basic file information.

In-pins

file

Out-pins

name
type
size
size in bytes
file: get file from assets

makes files from assets accessible in blueprints

In-pins

asset path
local path to the asset (e.g. /public/images/image.png)

Out-pins

success
asset exists
file
file-type to be used
name
filename of the asset
type
type of the asset
size
size in bytes of the asset
file: get data

Retrieve the contents of the given file

In-pins

file
encoding
The encoding of the data, can be ascii or utf8

Default:
utf8

Out-pins

data
file: get extension

Returns the file extension.

In-pins

file

Out-pins

file
extension
mimetype
file: get image size

Returns the dimensions of the image given.

In-pins

file

Out-pins

height
width
file: copy

Copies the given files to a new destination.

In-pins

flow
files
destination
overwrite
Overwrites file at destination if it exists.

Default:
true

Out-pins

flow
success
error
files
file: move

Moves the given files to a new destination.

In-pins

flow
files
destination

Out-pins

flow
success
error
files
file: move to public

Moves the given files to a new public destination.

In-pins

flow
files
destination

Out-pins

flow
success
error
files
file: parse xml

Parse an XML file into an object with XML attributed data

In-pins

flow
file
normalize
Transforms the keys to lowercase

Default:
false
strip prefix
Strips the xml namespace prefix from the keys

Default:
false
parse numbers
Parses integer-like strings and float-like strings as floats

Default:
false
parse booleans
Parses boolean-like strings to booleans

Default:
false

Out-pins

flow
object
success
error
file: parse MT940

Parse a MT940 defined XML file into an array of statements.

In-pins

flow
file
The MT940 file to be parsed.

Out-pins

flow
statements
An array of objects containing the parsed statements of the provided MT940 file.
file: delete

Deletes the given files.

In-pins

flow
files

Out-pins

flow
success
error
files
file: generate from value

Generates a file from the given value.

In-pins

flow
filename
The name of the file.
extension
The extension of the file, e.g. pdf.
data
The contents of the file, e.g. JSON, XML or CSV data.
encoding
The encoding of the data, can be ascii or utf8

Default:
utf8
win. newline char
Use a windows EOL character (\r\n) instead of the mac / linux EOL character (\n)

Out-pins

flow
success
File succesfully created?
file
Output file.
file: build XLS/X

Generates a xls / xlsx file.

In-pins

flow
filename
The name of the file.
extension
The extension of the file, e.g. xls or xlsx.
headers
The headers will be used for the first row.
values
The values to be set in the excel sheet. The headers will be used to select the data.
options

Out-pins

flow
success
error
file
Output file.
file: build CSV

In-pins

flow
filename
header
values
options

Out-pins

flow
CSV file
file: elseif

If.. then.. else if.. default..

In-pins

default
else if
then

Out-pins

file
response: reply with file

In-pins

flow
connection
code
HTTP Status Code to return on this response.
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
file
A blueprint file-type to be returned on this connection.
root
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.
Filepath

Out-pins

flow
connection
file: if

If.. then.. else..

In-pins

true
false
boolean

Out-pins

file
file: multiple

Merge an array of files together.

In-pins

file
file

Out-pins

file
file: update name

Sets a custom name for all files. If multiple files are given the index will be appended

In-pins

filename
file

Out-pins

file
file: file custom upload

Use a custom provided file.

Out-pins

file
file: parse CSV

Parse a CSV file into an array of objects.

In-pins

flow
file
File to parse as CSV.
separator
The separator used to split values on a row.

Default:
,
detect separator
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
Has headers
Indicates if the CSV has headers or not, we will use the headers to create objects using these keys if true is given.
Custom headers
Array of headers to be used in case has_headers is set to false.

Out-pins

flow
array
Headers
error
file: rename

Renames the given files.

In-pins

flow
files
name

Out-pins

flow
success
error
files
file: exists

Checks if the given files exist.

In-pins

flow
files

Out-pins

flow
success
error
existing
missing
file: download

In-pins

flow
host
Could be a FTP or HTTP(s) host. e.g. ftp://username:password@host/file.pdf
basicauth
Could have user, password and send_immediately for DIGEST
options

Out-pins

flow
success
file
Array of files retrieved from endpoint
headers
HTTP Response Headers
error
file: build PDF

In-pins

flow
filename
The name this file should get and be seen as by the user.
language
Allows you to set a custom language for the PDF. This language only applies to UI blocks and not to value translations
header
The header that will be rendered on the PDF.
Header Height (px)
The height the header will receive in the PDF.
content
footer
The footer that will be rendered on the PDF.
Footer Height (px)
The height the footer will receive in the PDF.
Format
The format used for the PDF. The possible values are: Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6

Default:
A4
height
Sets a custom height for the PDF. The setting should be given with units (px, in, cm, mm)
width
Sets a custom width for the PDF. The setting should be given with units (px, in, cm, mm)
is landscape
Paper orientation

Default:
false

Out-pins

flow
PDF file
Success
Error