class Patron::Session

def post_multipart(url, data, filename, headers = {})

Returns:
  • (Patron::Response) -

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