The /sftp/import Robot

Transloadit is happy to import from whatever storage solution suits you best.

The /sftp/import Robot imports whole libraries of files from your SFTP servers into Transloadit. This Robot relies on public key authentication.

Parameters

Name Type Default Description
user (required) String The user to use for the SFTP connection.
host (required) String The host to connect to via SFTP.
path (required) String The path on your SFTP server where to search for files.
ignore_errors Boolean false There might be an error coming up when trying to extract meta data from your imported files. This happens for files that are zero bytes big for example. Setting this to true will cause the Robot to not stop the import (and the entire Assembly) when that happens.
port Integer 22 The port to use for the connection.

Live demos

Our /sftp/import Robot can be used in combination with other Robots, to create powerful workflows unique to your use case.
Here are a few example scenarios, and the required the Assembly Instructions to implement them.
You can also try demos of these examples right here, live on our website.

Import an entire folder of files from an SFTP Server

{
  "steps": {
    "imported": {
      "user": "YOUR_SFTP_USER",
      "robot": "/sftp/import",
      "result": true,
      "host": "example.org",
      "path": "my_folder/"
    },
    "resized": {
      "use": ["imported"],
      "robot": "/image/resize",
      "result": true,
      "height": 130,
      "imagemagick_stack": "v2.0.3",
      "width": 130,
      "zoom": false
    },
    "exported": {
      "use": ["imported", "resized"],
      "robot": "/s3/store",
      "bucket": "demos.transloadit.com",
      "bucket_region": "us-east-1",
      "key": "YOUR_AWS_KEY",
      "secret": "YOUR_AWS_SECRET"
    }
  }
}

Our /sftp/import robot blog posts

Over the years we wrote the following posts about Our /sftp/import robot on our blog:

Did you know?

You can easily combine Robots to create powerful workflows, unique to your business.
This is the power of Transloadit.