> ## 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

Uploads a file that can be attached to a ticket comment.

<Note>
  External Documentation

  To learn more, visit the [Zendesk documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/ticket-attachments/#upload-files).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                                                                                                                                                                                                       |
  | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | File Identifier | The identifier of the file. You can create a file identifier using the `Set File Variable` action.                                                                                                                                                                                |
  | File Name       | Specifies what the file will be named when attached to the ticket comment.<br /><br />For example: `user_crash.log`.                                                                                                                                                              |
  | Token           | A token that's used for **adding multiple files to the same upload**. The token is valid for 3 days.<br /><br />For further information, please refer to [Zendesk Documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/ticket-attachments/#upload-files). |
</div>

## Example Output

```json theme={"dark"}
{
	"upload": {
		"token": "<string>",
		"expires_at": "2025-04-15T07:29:04Z",
		"attachments": [
			{
				"url": "<string>",
				"id": 34142873249856,
				"file_name": "<string>",
				"content_url": "<string>",
				"mapped_content_url": "<string>",
				"content_type": "<string>",
				"size": 596895,
				"width": 1988,
				"height": 1287,
				"inline": false,
				"deleted": false,
				"malware_access_override": false,
				"malware_scan_result": "<string>",
				"thumbnails": [
					{
						"url": "<string>",
						"id": 16543355994864,
						"file_name": "<string>",
						"content_url": "<string>",
						"mapped_content_url": "<string>",
						"content_type": "<string>",
						"size": 2235,
						"width": 132,
						"height": 48,
						"inline": false,
						"deleted": false,
						"malware_access_override": false,
						"malware_scan_result": "<string>"
					}
				]
			}
		],
		"attachment": {
			"url": "<string>",
			"id": 22592852966842,
			"file_name": "<string>",
			"content_url": "<string>",
			"mapped_content_url": "<string>",
			"content_type": "<string>",
			"size": 632384,
			"width": 1661,
			"height": 260,
			"inline": false,
			"deleted": false,
			"malware_access_override": false,
			"malware_scan_result": "<string>",
			"thumbnails": [
				{
					"url": "<string>",
					"id": 47819782114552,
					"file_name": "<string>",
					"content_url": "<string>",
					"mapped_content_url": "<string>",
					"content_type": "<string>",
					"size": 3078,
					"width": 73,
					"height": 20,
					"inline": false,
					"deleted": false,
					"malware_access_override": false,
					"malware_scan_result": "<string>"
				}
			]
		}
	}
}
```

## Workflow Library Example

[Upload File with Zendesk and Send Results Via Email](https://library.blinkops.com/workflows/upload-file-with-zendesk-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-zendesk-and-send-results-via-email/canvas" />
</div>
