// }
} else if (clientFileName.endsWith(".xls") == true) {
final StringBuffer buf = new StringBuffer();
buf.append("report_").append(FileHelper.createSafeFilename(PFUserContext.getUser().getUsername(), 20)).append(".xls");
final File file = new File(ConfigXml.getInstance().getWorkingDirectory(), buf.toString());
fileUpload.writeTo(file);
getReportScriptingStorage().setFilename(clientFileName, file.getAbsolutePath());
} else {
log.error("File extension not supported: " + clientFileName);
}
} catch (final Exception ex) {