}
return map;
}
catch (FileSizeLimitExceededException fsle)
{
throw new ServerException("One or more files is larger (" + fsle.getActualSize() + " bytes) than the configured limit (" + fsle.getPermittedSize() + " bytes).");
}
catch (IOException ex)
{
throw new ServerException("Upload failed: " + ex.getMessage(), ex);
}
catch (FileUploadException ex)
{
throw new ServerException("Upload failed: " + ex.getMessage(), ex);
}
}