I am having problems uploading a file to a web service using Faraday.
My code is:
conn = Faraday.new('http://myapi') do |f| f.request :multipart end payload = { :file => Faraday::UploadIO.new('...', 'image/jpeg') } conn.post('/', payload)
Nothing of the kind happens after trying to publish. When I check the answer to this , I see:
The body is set to a CompositeReadIO object and seems to never send a request.
source share