We found 20 matches for: files

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

file: upload

In-pins

flow
host
Could be a FTP or HTTP(s) host. e.g. ftp://username:password@host/file.pdf
file

Out-pins

flow
success
error
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

Out-pins

flow
success
file
Array of files retrieved from endpoint
headers
HTTP Response Headers
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: 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: 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: multiple

Merge an array of files together.

In-pins

file
file

Out-pins

file
response: reply as 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 }]
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: elseif

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

In-pins

default
else if
then

Out-pins

file
file: build CSV

In-pins

flow
filename
header
values
options

Out-pins

flow
CSV file
file: rename

Renames the given files.

In-pins

flow
files
name

Out-pins

flow
success
error
files
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 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
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 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: if

If.. then.. else..

In-pins

true
false
boolean

Out-pins

file