Skip to content

Commit

Permalink
Added simple file post method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Scott Keone Payne committed Nov 16, 2010
1 parent 7d93bdd commit e48e91a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/selenesse/SlimSeleniumDriver.java
Expand Up @@ -79,8 +79,7 @@ public String delete(String path) throws Exception
public String postFile(String path, String mediaType, String filename) throws Exception
{
String url = getFormattedURL(getBaseURL(), path);
return HttpUtils.postMultipartFiles(url, getCookies(), Collections.singletonList(mediaType),
Collections.singletonList(filename));
return HttpUtils.postSimpleFile(url, getCookies(), mediaType, filename);
}

// Makes a simple http request with the given request method.
Expand Down

0 comments on commit e48e91a

Please sign in to comment.