protected void checkSingleRequiredField(String name, String strippedName, String[] values,
StripesRequestWrapper req, ValidationErrors errors) {
// Firstly if the post is a multipart request, check to see if a file was
// sent under that parameter name
FileBean file = null;
if (req.isMultipart() && (file = req.getFileParameterValue(name)) != null) {
if (file.getSize() <= 0) {
errors.add(name, new ScopedLocalizableError("validation.required",
"valueNotPresent"));
}
}
// And if not, see if any regular parameters were sent