slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.69k stars 1.14k forks source link

Expose the file upload endpoints instead of bundling it into one uploadFileV2 function #1346

Open assembly-deepali opened 2 weeks ago

assembly-deepali commented 2 weeks ago

Description

There are cases where I want to upload the files to slack, and not immediately send it. My example is I want to send a message with the correct attachments within the message a user specifies (and not two separate messages). I want two endpoints support: specifically I want to be able to upload them to slack as an external url, and create my own file block to send it within a channel.

(Optional) Slack's documentation