public String checkForUpload(String clientId) {
try {
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
UploadedFile fileData = (UploadedFile) request.getParameterMap().get(clientId);
if (fileData != null) {
return getUpload(fileData);
}
} catch (Exception e) {