Module: Flickr::Client::Upload
- Included in:
- Flickr::Client
- Defined in:
- lib/flickr/client/upload.rb
Instance Method Summary collapse
Instance Method Details
#upload(filepath, params = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/flickr/client/upload.rb', line 7 def upload(filepath, params = {}) params.delete(:format) # Uploads can only allow for XML responses post(UPLOAD_PATH, { :photo => Faraday::UploadIO.new(filepath, params.delete(:content_type) || get_content_type(filepath)) }.merge(params)) end |