return makePostUploadRequest(uri, fileToUpload, paramName, null);
}
protected ApiResponse makePostUploadRequest(URI uri, File fileToUpload, String paramName, Map<String, String> additionalHeaders)
throws Exception {
FileBody fileBodyToUpload = new FileBody(fileToUpload);
String mimeType = new MimetypesFileTypeMap().getContentType(fileToUpload);
Context context =
apiTest.post(uri, null, new PostUploadWithoutRedirectImpl(paramName,
fileBodyToUpload), additionalHeaders);