}
String accessType = AccessType.AUTHENTICATED.getText();
String requestUri = FileUrls.UPLOAD_NEW_VERSION_COMMUNITY_FILE.format(this,
FileUrlParts.accessType.get(accessType), FileUrlParts.communityId.get(communityId),
FileUrlParts.fileId.get(fileId));
ContentStream contentFile = (ContentStream) getContentObject(title, iStream);
Map<String, String> headers = new HashMap<String, String>();
headers.put(FileConstants.X_UPDATE_NONCE, getNonce()); // It is not clearly documented which Content Type requires Nonce, thus adding nonce in header for all upload requests.
return uploadNewVersion(requestUri, contentFile, params, headers);
}