FileItem file = fileUpload.getUploadedFile(controlName);
String mimeType = file.getContentType();
if (permittedMimeFileTypes == null || permittedMimeFileTypes.contains(mimeType)) {
innerData = new FileInfo(file);
}
else {
addError(
ErrorUtil.localizeAndFormat(
UiLibMessages.FORBIDDEN_MIME_TYPE,