String requestUri = FileUrls.COMMUNITYLIBRARY_FEED.format(this,
FileUrlParts.accessType.get(accessType), FileUrlParts.communityId.get(communityId));
Content contentFile = getContentObject(title, iStream, length);
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.
Response data = createData(requestUri, null, headers, contentFile);
return getFileFeedHandler().createEntity(data);
}