Send File
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.
Parameters
Parameter | Description |
---|---|
Channels | Comma-separated list of channel names or IDs where the file will be shared. |
File Content | File contents via a POST variable. |
File Identifier | The identifier of the file. You can create a file identifier using the Set File Variable action. |
File Name | Filename of file. |
File Title | Title of file. |
File Type | - |
Message | The message text introducing the file in specified channels . |
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