Skip to content

Commit 5ffc654

Browse files
authored
Merge pull request #507 from gjtorikian/patch-1
Update README.md
2 parents 5bec857 + cefc514 commit 5ffc654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Upload a file with [files_upload](https://api.slack.com/methods/files.upload).
177177
client.files_upload(
178178
channels: '#general',
179179
as_user: true,
180-
file: Faraday::UploadIO.new('/path/to/avatar.jpg', 'image/jpeg'),
180+
file: Faraday::Multipart::FilePart.new('/path/to/avatar.jpg', 'image/jpeg'),
181181
title: 'My Avatar',
182182
filename: 'avatar.jpg',
183183
initial_comment: 'Attached a selfie.'

0 commit comments

Comments
 (0)