Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slackUploadFile returns null response #924

Open
rakesh-burugugadda opened this issue Sep 18, 2023 · 3 comments
Open

slackUploadFile returns null response #924

rakesh-burugugadda opened this issue Sep 18, 2023 · 3 comments

Comments

@rakesh-burugugadda
Copy link

What feature do you want to see added?

Does the method slackUploadFile return any resonse?

My use case is that I want to:

  1. Upload a file along with an initialComment to slack
  2. Upload another file inside a thread of the above message

I haven't found a way to upload multiple files with a single message and ended up on a way to send the remaining files to the thread as shown here. But the slackUploadFile method is returning a null response(in the documentation slackSend is used).

Upstream changes

No response

@alandeg
Copy link

alandeg commented Oct 1, 2024

+1 for this enhancement - I would like to access the URL of the uploaded file when using this method

@timja
Copy link
Member

timja commented Oct 1, 2024

To do so your file path needs to match multiple files currently.

e.g. in the example:

slackUploadFile(channel: "cool-threads:" + slackResponse.ts, filePath: "*.txt", initialComment:  "A file, inside a thread.")

All files matching *.txt will be uploaded with one initial comment

@alandeg
Copy link

alandeg commented Oct 3, 2024

To do so your file path needs to match multiple files currently.

e.g. in the example:

slackUploadFile(channel: "cool-threads:" + slackResponse.ts, filePath: "*.txt", initialComment:  "A file, inside a thread.")

All files matching *.txt will be uploaded with one initial comment

I'm actually referring to the permalink URL which Slack generates for the uploaded file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants