We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bec857 commit cefc514Copy full SHA for cefc514
README.md
@@ -177,7 +177,7 @@ Upload a file with [files_upload](https://api.slack.com/methods/files.upload).
177
client.files_upload(
178
channels: '#general',
179
as_user: true,
180
- file: Faraday::UploadIO.new('/path/to/avatar.jpg', 'image/jpeg'),
+ file: Faraday::Multipart::FilePart.new('/path/to/avatar.jpg', 'image/jpeg'),
181
title: 'My Avatar',
182
filename: 'avatar.jpg',
183
initial_comment: 'Attached a selfie.'
0 commit comments