Uploads or creates 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.

Basic Parameters

ParameterDescription
Alt TextDescription of image for screen-reader.
ChannelsComma-separated list of channel names or IDs where the file will be shared. Can be obtained using the Get Channels action.
File ContentFile contents via a POST variable.
File IdentifierThe identifier of the file. You can create a file identifier using the Set File Variable action.
File NameThe name of the file.
File TitleThe title of the file in slack.
File TypeSyntax type of the snippet being uploaded.
MessageThe message text introducing the file in specified channels.

Advanced Parameters

ParameterDescription
Thread TSProvide another message’s ts value to upload this file as a reply. Never use a reply’s ts value; use its parent instead. Also make sure to provide only one channel when using Thread TS.

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

Enforce Https on Aws Application Load Balancer

Preview this Workflow on desktop