Slack send a file message won't accept my channel id

:bullseye: What is your goal?

Hello everyone, I am trying to send a file in slack using the send a file message action. However, slack won’t accept my channel id.

:thinking: What is the problem & what have you tried?

The weird thing is that when I send a simple text message with the same channel id, it works. This means that the channel ID is correct. I have also tried to remove the thread id, but didn’t change anything. I send the message in a public channel, so no right exception should be raised.

:clipboard: Error messages or input/output bundles

Here are the inputs:

[
    {
        "title": "Média provenant du patient: File.jpg",
        "channel": "C0ADNRK69KR",
        "content": "IMTBuffer(235449, binary, 36fc43124623fa036193c1f90d555b91067f250e): ffd8ffe000104a46494600010100000100010000ffdb004300080606070605080707070909080a0c140d0c0b0b0c1912130f141d1a1f1e1d1a1c1c20242e2720222c231c1c2837292c30313434341f27393d38323c2e333432ffdb0043010909090c0b0c",
        "channels": "public",
        "fileName": "File.jpg",
        "thread_ts": "1770736664.953009",
        "initial_comment": "--- Envoyé par le patient ---\n"
    }
]

And the error is: Error: invalid_channel (200).

Thanks in advance for the help !

Hi @Baboune

Are you using a Slack bot to post? This looks like a permission issue. If so, is the bot a member of the channel? Does it have all required scopes, besides posting text messages?

Hello,

Please review your scopes- it could be one of the reasons why you can send text but cannot upload files.

https://docs.slack.dev/reference/scopes/files.write

Hi, thanks for the reply ! No I use the user connexion. The bot isn’t available for the action to send files.

Hi, thanks for the help ! I’ll check that out.