> Betreff: Re: No parameters set in action when file upload exceeds max size > > Has any encountered this? > I've tried calling getParameter() on the request to see if I can manually > extract the parameters I need but this always returns null. It seems that > the MultiPartRequestWrapper believes it has processed parameters and there > are none. > > Greg >
Yes I encountered that just recently. The max size is checked for the whole POST body. When the POST body is too big it is completely skipped. As workaround I added parameters to the form URL instead of submitting them as hidden form fields (using just <form> instead of <s:form>). That way only the uploaded file is skipped when too big. You might want to have a look here: http://struts.apache.org/development/2.x/docs/file-upload.html#FileUpload-AdvancedConfiguration Regards, Christoph This Email was scanned by Sophos Anti Virus