Network: Upload a file to a URL

Upload a file to a URL.

Help Centre › Building Processes

Upload a file to a URL.

Add it to a process

In the process designer, open the Add step tab. Find Upload a file to a URL under Network › File Operations, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
Upload URLYesUpload URL
File pathYesLocal file path to upload
Session nameNoSession name Default: default.
VariableYesName of the variable where the result will be stored Default: response.
Additional form data (JSON object)NoExtra form data
Headers (JSON object)NoRequest headers
Field nameNoForm field name for the file Default: file.
Timeout (seconds)NoRequest timeout

What it gives back

  • {response} – Upload response

See all Network steps.

Errors

ErrorDescription
File not foundThe specified file does not exist at the given path
Connection failedUnable to establish a connection to the server
Upload rejectedThe server rejected the file upload

Tips

  • Use the field_name parameter to match the API's expected form field name
  • Add extra form data with the data parameter for metadata such as descriptions or tags
  • Increase timeout for large file uploads

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.