(Describe your issue and goal here)
This should work:
- upload an image with client.files_upload_v2(), do not want it to be visible in a channel
- chat_postMessage(blocks=type: image, image_url: file.private_url ...)
This currently doesn't work unless the file/image is made public via client.files_sharedPublicURL(), but enabling public files is not an option in many organisations. Additionally one shouldn't have to construct urls by extracting pub_secret from file/permalink_public.
Given that slack client can show uploaded images (even when they are not public), it should also work with blocks/type/image.
Example discussion/solution (with making the file public) - https://stackoverflow.com/questions/58186399/how-to-create-a-slack-message-containing-an-uploaded-image
Category (place an x in each of the [ ])
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
(Describe your issue and goal here)
This should work:
This currently doesn't work unless the file/image is made public via client.files_sharedPublicURL(), but enabling public files is not an option in many organisations. Additionally one shouldn't have to construct urls by extracting pub_secret from file/permalink_public.
Given that slack client can show uploaded images (even when they are not public), it should also work with blocks/type/image.
Example discussion/solution (with making the file public) - https://stackoverflow.com/questions/58186399/how-to-create-a-slack-message-containing-an-uploaded-image
Category (place an
xin each of the[ ])Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.