{
// Change the request to a multipart web request so parameters are
// parsed out correctly
try
{
final WebRequest multipartWebRequest = ((WebRequest)getRequest()).newMultipartWebRequest(getMaxSize());
getRequestCycle().setRequest(multipartWebRequest);
}
catch (WicketRuntimeException wre)
{
if (wre.getCause() == null || !(wre.getCause() instanceof FileUploadException))