struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Disable file uploads
Date Fri, 14 Apr 2017 05:33:04 GMT
2017-04-13 17:43 GMT+02:00 Adam Brin <abrin@digitalantiquity.org>:
> One step is  to modify the struts.xml to create a custom stack that doesn’t include
the file-upload interceptor.

Parsing of multipart request happens early, in Dispatcher so to be
100% sure you must implement a NoOpMultipartParser or define your own
Dispatcher and override the wrapRequest() method or or the
isMultipartRequest() method (new in 2.5.11)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message