aki017 / slack-ruby-gem

A Ruby wrapper for the Slack API
MIT License
242 stars 79 forks source link

File.upload method doesn't work, correct? #7

Closed pkpp1233 closed 9 years ago

pkpp1233 commented 9 years ago

It seems to pseudo-work if you just send the content parameter, but is it possible to send through the file parameter? It doesn't seem to work with the normal way of creating a payload with Faraday:

my_file = Faraday::UploadIO.new("logo.svg", 'image/svg')
Slack.files_upload({
    channel: "#general",
    file: my_file
})

I'll just do the call directly with Farday, but still wanted to bring up.

aki017 commented 9 years ago

fixed :grinning: