class Patron::Session

def post_file(url, filename, headers = {})

Returns:
  • (Patron::Response) -

Parameters:
  • headers (Hash) -- the hash of header keys to values
  • filename (String) -- path to the file to be uploaded
  • url (String) -- the URL to fetch
def post_file(url, filename, headers = {})
  request(:post, url, headers, :file => filename)
end