Open jwoertink opened 11 years ago
Is this still an issue on ruby 2.0+ ?
lol. I don't even remember posting this issue. The app I was using this for doesn't even exist 😂
@jwoertink It's okay, even though the issue is old, it's never been triaged, so I'm just going through all issues to try and at least get a handle on what the status is currently.
I occurred the same issue. I resolved it as below.
File.open('sample.jpg') do |file|
params = {}
params[:user] = {:avatar => UploadIO.new(file, 'image/jpeg', 'filename.jpg') }
response = conn.put('/users', params)
end
faraday v0.17.3
I'm using Faraday which requires this gem as a dependency. When I try this code in the rails console
I get the following error:
Using version 1.1.5