Network: Get file size

Get the size of a remote file in bytes.

Help Centre › Building Processes

Get the size of a remote file in bytes.

Add it to a process

In the process designer, open the Add step tab. Find Get file size under Network › Manage, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
Connection nameYesConnection name
Remote file pathYesRemote file path
VariableYesVariable to store size Default: file_size.

What it gives back

  • {file_size} – File size in bytes

See all Network steps.

Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
File not foundThe remote file does not exist

Tips

  • Returns the size in bytes – divide by 1024 for KB, by 1048576 for MB
  • Use to check file sizes before downloading large files

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.