addErrorMessage(request, "error.photo.upload.unsupported.file");
return uploadPhotoInvalid(mapping, actionForm, request, response);
}
try {
photo.processImage();
UploadOwnPhoto.upload(photo, bean.getIndividualProgramProcess().getPerson());
} catch (final UnableToProcessTheImage e) {
addErrorMessage(request, "error.photo.upload.unable.to.process.image");
photo.deleteTemporaryFiles();
return uploadPhotoInvalid(mapping, actionForm, request, response);