retVal="201";
counter++;
}
byte[] fileData = uplFile.get();
if (fileData != null && fileData.length > 0) { // this also happens if the file does not exist => no precise error message possible
fckMgr.saveFile(blogCode, currentDir, fileName, fileData, uplFile.getContentType(), user);
}
} else {
retVal="202";
errorMessage="";
LOGGER.debug("Invalid file type: " + ext);