File tempFile = null;
String handle = pathInfo[0];
MediaFileManager fileMgr = roller.getMediaFileManager();
Weblog website = WebloggerFactory.getWeblogger().getWeblogManager().getWeblogByHandle(handle);
if (!RollerAtomHandler.canEdit(user, website)) {
throw new AtomNotAuthorizedException("Not authorized to edit weblog: " + handle);
}
if (pathInfo.length > 1) {
// Save to temp file
String fileName = createFileName(website,
(slug != null) ? slug : Utilities.replaceNonAlphanumeric(title,' '), contentType);