uploading multiple files to slack with curl

Viewed 569

I'm using the following command to upload files to slack:

curl https://slack.com/api/files.upload -F token="xoxb-***-***-***" -F channels="channel_name" -F title="photo" -F filename="photo" -F file=@"photo.JPG"

How can I update the command to upload all files in the folder?

I tried the command below and it did not work.

curl https://slack.com/api/files.upload -F token="xoxb-***-***-***" -F channels="channel_name" -F title="photo" -F filename="photo" -F file=@"*.JPG"

0 Answers
Related