| files_upload | R Documentation |
Uploads or creates a file.
files_upload(
token = Sys.getenv("SLACK_TOKEN"),
channels = NULL,
content = NULL,
file = NULL,
filename = NULL,
filetype = NULL,
initial_comment = NULL,
thread_ts = NULL,
title = NULL,
return_response = F
)
token |
Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter. |
channels |
Comma-separated list of channel names or IDs where the file will be shared. |
content |
File contents via a POST variable. If omitting this parameter, you must provide a file. |
file |
File contents via multipart/form-data. If omitting this parameter, you must submit content. |
filename |
Filename of file. |
filetype |
A file type identifier. |
initial_comment |
The message text introducing the file in specified channels. |
title |
Title of file. |
return_response |
Whether or not to return the API call response as opposed to the response body. Defaults to FALSE (return response body) |
Provide |
another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead. |
The details of the uploaded file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.