FTP Server

To allow our servers to download files directly from an FTP server, the following parameters to send the request are available:

FieldDescriptionRequiredDefault
input.typeSpecifies the type of the input. For cloud storage always use cloud.YesN/A
input.sourceTells our servers which cloud storage provider must be contacted, in this case ftp.YesN/A
input.parameters.hostThe URL or IP of the FTP server.YesN/A
input.parameters.fileComplete path to the file to download, e.g. `folder-ion-ftp/image.jpegYesN/A
input.parameters.portThe port used to connect to the FTP server.No21
input.credentials.usernameThe username of the FTP server account.YesN/A
input.credentials.passwordThe password of the FTP server account.YesN/A
POST /jobs HTTP/1.1
Host: api2.online-convert.com
x-oc-api-key: <your API key here>
Content-Type: application/json
Cache-Control: no-cache

{
    "conversion": [{
        "target": "png"
    }],
    "input": [{
        "type": "cloud",
        "source": "ftp",
        "parameters": {
            "host": "host of your FTP server",
            "file": "the complete path to the file"
        },
        "credentials": {
            "username": "username",
            "password": "password"
        }
    }]
}
curl -X POST \
  https://api2.online-convert.com/jobs \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'x-oc-api-key: <your API key here>' \
  -d '{
    "conversion": [{
        "target": "png"
    }],
    "input": [{
        "type": "cloud",
        "source": "ftp",
        "parameters": {
            "host": "host of your FTP server",
            "file": "the complete path to the file"
        },
        "credentials": {
            "username": "username",
            "password": "password"
        }
    }]
}'

User suggested filenames

Filenames can be specified as described in the section for remote inputs

results matching ""

    No results matching ""