SlackWeb.Files.upload
You're seeing just the function
upload
, go back to SlackWeb.Files module for more information.
Uploads or creates a file.
Required Params
file
- File contents viamultipart/form-data
. ex:...
filename
- Filename of file. ex:foo.txt
Optional Params
channels
- Comma-separated list of channel names or IDs where the file will be shared.content
- File contents via a POST var. ex:...
filetype
- Slack-internal file type identifier. ex:php
initial_comment
- Initial comment to add to file. ex:Best!
title
- Title of file. ex:My File
Errors the API can return:
invalid_channel
- One or more channels supplied are invalidposting_to_general_channel_denied
- An admin has restricted posting to the #general channel.