Upload or create a file.

Note: If the channel/group is private, the Blink application must be added to the channel to send files to it.

Note: Even if the action is Completed, it still might not return the correct output but the file will still be uploaded to slack.

External Documentation

To learn more, visit the Slack documentation.

Basic Parameters

ParameterDescription
Alt TextThe file’s image description for screen-reader.
Channel IDsA comma-separated list of channel IDs where the file will be shared. Can be obtained using the Get Channels action.
Channel NamesA comma-separated list of channel names where the file will be shared. Can be obtained using the Get Channels action.
File ContentThe raw content of the file to upload.
File Content SourceThe source of the file’s content.
File IdentifierThe identifier of the file. Can be obtained by using the Set File Variable action.
File NameThe name of the file to upload.
File TitleThe title of the uploaded file in slack.
File TypeThe syntax type of the displayed file’s snippet.
MessageThe message text attached to the file in the specified channels.
Send ToChoose the message destination from the following options:

* Channel By IDs - Target specific channels using their unique IDs.
* Channel By Names - Target specific channels using their display names.
* Direct Message - Send to a specific user’s direct message
* Group Chat - Send to multiple users in a group chat.

Note: Using channel IDs is significantly faster than channel names and less likely to timeout.
User EmailThe email address of the recipient to send the file to.
User EmailsA comma separated list of email addresses of users to send the file to in a group chat.

Advanced Parameters

ParameterDescription
Thread TSProvide a message’s timestamp (ts) value to upload this file as a threaded reply.

Restrictions:
* This parameter cannot be used when sending the file to multiple channels.
* Using a reply’s timestamp is forbidden, only the parent’s timestamp is allowed.

Example Output

{
	"ok": true,
	"file": {
		"id": "F04AUC29XRC",
		"created": 1668527744,
		"timestamp": 1668527744,
		"name": "Example file.txt",
		"title": "Example file",
		"mimetype": "text/plain",
		"filetype": "text",
		"pretty_type": "Plain Text",
		"user": "U02P2RBCW6R",
		"user_team": "T01NVABR4UW",
		"editable": true,
		"size": 8,
		"mode": "snippet",
		"is_external": false,
		"external_type": "",
		"is_public": true,
		"public_url_shared": false,
		"display_as_bot": false,
		"username": "",
		"url_private": "https://files.slack.com/files-pri/T01NVABR4UW-F04AUC29XRC/example_file.txt",
		"url_private_download": "https://files.slack.com/files-pri/T01NVABR4UW-F04AUC29XRC/download/example_file.txt",
		"permalink": "https://blinkopsworkspace.slack.com/files/U02P2RBCW6R/F04AUC29XRC/example_file.txt",
		"permalink_public": "https://slack-files.com/T01NVABR4UW-F04AUC29XRC-6f39723b19",
		"edit_link": "https://blinkopsworkspace.slack.com/files/U02P2RBCW6R/F04AUC29XRC/example_file.txt/edit",
		"preview": "ddsbdgnf",
		"preview_highlight": "<div class=\"CodeMirror cm-s-default CodeMirrorServer\" oncopy=\"if(event.clipboardData){event.clipboardData.setData('text/plain',window.getSelection().toString().replace(/\\u200b/g,''));event.preventDefault();event.stopPropagation();}\">\n<div class=\"CodeMirror-code\">\n<div><pre>ddsbdgnf</pre></div>\n</div>\n</div>\n",
		"lines": 1,
		"lines_more": 0,
		"preview_is_truncated": false,
		"comments_count": 0,
		"is_starred": false,
		"shares": {
			"public": {
				"C03L2S98MM4": [
					{
						"reply_users": [],
						"reply_users_count": 0,
						"reply_count": 0,
						"ts": "1668527744.922359",
						"channel_name": "dummy-channel3",
						"team_id": "T01NVABR4UW",
						"share_user_id": "U02P2RBCW6R"
					}
				]
			}
		},
		"channels": [
			"C03L2S98MM4"
		],
		"groups": [],
		"ims": [],
		"has_rich_preview": false,
		"file_access": "visible"
	}
}

Workflow Library Example

Send File with Slack and Send Results Via Email

Preview this Workflow on desktop