...
Please read RFC1341 the Multipart section for more details, existing Struts Multipart
parsers support only multipart/form-data
content type. This option is available since Struts 2.3.11.
Disabling file upload support
You can alternatively disable the whole file upload mechanism defining a constant in struts.xml
:
Code Block | ||||
---|---|---|---|---|
| ||||
<constant name="struts.multipart.enabled" value="false"/> |
With this constant in place, Struts will ignore a Content-Type
header and will treat each request as an ordinary http request. This option is available since Struts 2.3.11.