class Patron::Session

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

Uploads the contents of a file and data to the specified +url+ using HTTP POST.
def post_multipart(url, data, filename, headers = {})
  request(:post, url, headers, {:data => data, :file => filename, :multipart => true})
end