Created
September 21, 2017 11:56
-
-
Save Manikkumar1988/afd769dceb29c41af06a06c2595b0728 to your computer and use it in GitHub Desktop.
CURL command to upload file on Slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://slack.com/api/files.upload -F token="${SLACK_TOKEN}" -F channels="${SLACK_CHANNEL}" -F title="${message_title}" -F filename="${filename}" -F file=@"${path_to_file}" |
Thank you so mush ! Very useful and straight forward.
Thank you so mush ! Very useful and straight forward.
Glad that it helped
awesome, thanks.
is it possible to use markdown? I want to add formatted links to the message
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Mate I also need to do the same but I got error like follow
nuwan@nuwan-DevOps:
$ curl https://slack.com/api/files.upload -F token="${fmEsYV1LJBiysn}" -F channels="${monitoring}" -F title="${message_title}" -F filename="${filename}" -F file=@"/tmp/myfile.pdf"${"ok":false,"error":"not_authed"}nuwan@nuwan-DevOps: