protected ApiResponse makePostUploadRequest(URI uri, File fileToUpload, String paramName)
throws Exception {
FileBody fileBodyToUpload = new FileBody(fileToUpload);
String mimeType = new MimetypesFileTypeMap().getContentType(fileToUpload);
Context context =
apiTest.post(uri, null, new PostUploadWithoutRedirectImpl(paramName,
fileBodyToUpload));
docTestMachine.sayUploadRequest(context.apiRequest, fileBodyToUpload.getFilename(),
fileHelper.readFile(fileToUpload), fileToUpload.length(), mimeType, headersToShow,