> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload File

Upload a file to a channel. The file ID can be attached to a post using the `Create Post In Channel` action.

**Required Permissions**: `upload_file`.

<Note>
  External Documentation

  To learn more, visit the [Mattermost documentation](https://developers.mattermost.com/api-documentation/#/operations/UploadFile).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                                |
  | ---------------- | ---------------------------------------------------------- |
  | Channel ID       | The ID of the channel to upload the file to.               |
  | Client IDs       | The ID for the file that will be returned in the response. |
  | File Identifiers | A comma-separated list of file identifiers.                |
</div>

## Example Output

```json theme={"dark"}
{
	"file_infos": [
		{
			"id": "string",
			"user_id": "string",
			"post_id": "string",
			"create_at": 0,
			"update_at": 0,
			"delete_at": 0,
			"name": "string",
			"extension": "string",
			"size": 0,
			"mime_type": "string",
			"width": 0,
			"height": 0,
			"has_preview_image": true
		}
	],
	"client_ids": [
		"string"
	]
}
```

## Workflow Library Example

[Upload File with Mattermost and Send Results Via Email](https://library.blinkops.com/workflows/upload-file-with-mattermost-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/upload-file-with-mattermost-and-send-results-via-email/canvas" />
</div>
