Slack is not unfurling the image

(Talvinder) #1

I have a simple flow. Flow triggers when an image is uploaded. After that I have a send an image action with the URL set as uploaded file url. While the flow is triggering properly, but the image is not showing up. Only “image” as a text shows up. I tried using card as well with image set up as file URL. All in vain.

Is there an issue with slack?

(Daniel Beckett) #2

Hi Talvinder.

I just did a quick test with my Slackbot and was able to send and view an image with no problems. Admittedly it’s a very basic flow that I’m using:

Trigger = Bot > Catch All
Action = Bot > Send an Image (The URL is http://blogs-images.forbes.com/ericsavitz/files/2011/03/smiley-face.jpg?width=960)

As a quick test you could try a similar flow to the above. I’d also suggest trying the image URL’s that you’re sending in your web browser to see if they display correctly.

(Talvinder) #3

Hi Daniel,

Sending image this way works fine. My issue is:

  1. I ask user to upload the image via slackbot
  2. User uploads the image
  3. This upload is caught via a file upload trigger
  4. I want to use the url of the uploaded image, and send the same image to the user
  5. Trouble is, the image that the user uploads, is by default uploaded as a private file. The File URL attribute of flowxo has the url of the private file, and this url is not of the direct image file

Hope I am able to clarify the situation properly.

(Daniel Beckett) #4

Hi Talvinder,

Apologies for the delayed response. Thanks for sharing that extra info.

I setup a similar use case and saw the same thing i.e. Bot > Send an Image just returns the word ‘image’ in Slack. We may need to look into why it behaves this way but sometimes it’s just a case of different platforms reacting in different ways to our services :confused:

What does seem to work is using Bot > Send a Message and just including the captured URL - Slack will load up the image for the user.

Please can you give the send a message action a try and let me know if you run into any problems with it? :slight_smile:

Edit: I’ve just noticed that you also mentioned the private file URL as an issue. I’m not sure if there’s a way to change the default capture behaviour in Slack so that the sent file is set to public. I’ll look into this and update back on here once I find something.

Thanks,
Dan

(Daniel Beckett) #5

Unfortunately it doesn’t look like we’ve got any control over the URL that we grab from Slack. The bot is essentially grabbing whatever another user would see which in the case of uploaded images in slack will be controlled by the sharing permissions selected by the user when they send the file.