-1

我正在使用 wicket 1.4.17 和浏览器 IE edge

当我尝试使用时出现FileUploadField 异常:

ervletRequest 不包含多部分内容。一种可能的解决方案是显式调用Form.setMultipart(true),Wicket 会尽力自动检测多部分表单

  • 我进入contentType = application/x-www-form-urlencoded

  • 在 IE9 中它的工作。

我希望在我添加 Form.setMultipart(true) then 之后看到contentType=multipart

4

1 回答 1

0

确保您的表单是使用 POST 提交的:

http://apache-wicket.1842946.n4.nabble.com/Error-with-FileUpload-quot-ServletRequest-does-not-contain-multipart-content-quot-td3512653.html

于 2018-01-10T18:25:36.587 回答