Here, I introduce 2 scripts for uploading files to Slack using Node.js as samples. These 2 sample scripts are for uploading files to Slack.
- You can upload the zip file by converting byte array as follows.
- At first, it builds
form-data
. - Adds the zip file converted to byte array and
boundary
usingBuffer.concat()
. - This is used as body in request.
- At first, it builds