Wicket form “ServletRequest does not contain multipart content”
问题 I have a wicket form that has a file upload box on it. Sometimes this file upload box is hidden because the user isn't required to attach documentation. I have called setMultiPart(true) on the form object , but I still (but only rarely) get this error: java.lang.IllegalStateException: ServletRequest does not contain multipart content. One possible solution is to explicitly call Form.setMultipart(true), Wicket tries its best to auto-detect multipart forms but there are certain situation where