> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.ftp.UploadFile

- Component: `appmixer.utils.ftp.UploadFile`
- Kind: Action
- Version: 1.0.1
- Visibility: Public
- Connector: [appmixer.utils.ftp 1.4.2](https://connectors.appmixer.com/connector/appmixer.utils.ftp/1.4.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.ftp/1.4.2/component/appmixer.utils.ftp.UploadFile>

Upload file to a remote FTP or SFTP server.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| File (`fileId`) | filepicker | The file to upload. |
| Path (`path`) | text | Remote file path. E.g. "/tmp/myfile.txt". If file at the path exists, it will be overwritten. This is not a directory, where you want to upload the file, this is a full path - directory and a filename! |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| File ID (`fileId`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.ftp.UploadFile",
  "author": "David Durman <david@client.io>",
  "description": "Upload file to a remote FTP or SFTP server.",
  "auth": {
    "service": "appmixer:utils:ftp"
  },
  "version": "1.0.1",
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        }
      },
      "inspector": {
        "inputs": {
          "fileId": {
            "type": "filepicker",
            "label": "File",
            "tooltip": "The file to upload.",
            "index": 1
          },
          "path": {
            "type": "text",
            "label": "Path",
            "index": 2,
            "tooltip": "Remote file path. E.g. \"/tmp/myfile.txt\". If file at the path exists, it will be overwritten. This is not a directory, where you want to upload the file, this is a full path - directory and a filename!"
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "File ID",
          "value": "fileId",
          "schema": {
            "type": "string",
            "example": "a1686006-35c8-4ffc-b23e-d687858cd418"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
