![]() ![]() The website link you get from _public has the format: Next you need to construct the direct image link from the link to website / _public property of the file. Only then will it be accessible through its public_url propertyĪPI method: files.sharedPublicURL with the file ID as argument. Next you have to mark the uploaded file as public. Don't include the channels argument or the image will be posted visible into those channel. Step 1 - Upload image to SlackĪPI method: files.upload with no special arguments, but make sure to get the file ID from the response. Imgur) even your own webserver, as long as you get a public URL for your image file. In our example we will use Slack as image hoster, but you can use any image hoster (e.g. ![]() This only works with a public URL to your image file, so you first need to upload your image to an image hoster (which can be your Slack workspace) to get the public URL. Post message with image block / attachmentĪlternatively you can add an image to your normal message either as image block or secondary attachment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |