if ( uploadedFile != null ) {
//checks if another identifier with the same name exists in the same folder
if (APILocator.getFileAssetAPI().fileNameExists(host, folder, fileName, "")) {
throw new DuplicateFileException(fileName);
}
contentlet = APILocator.getContentletAPI().checkin( contentlet, user, false );
if ( (subcmd != null) && subcmd.equals( com.dotmarketing.util.Constants.PUBLISH ) ) {
if ( isRootHost