Skip to content

Commit cefc514

Browse files
authored
Update README.md
1 parent 5bec857 commit cefc514

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)