struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <>
Subject Re: File Upload error making request parameters empty
Date Fri, 09 Jan 2015 12:40:13 GMT
> HI All,
> We need to upload files.
> Hence I am using defaultStack Interceptor, which uses file upload
> interceptor.
> If I select a large file to upload and fileupload interceptor displays
> error message on the same page. I have few hidden fields, whose values 
> pre populated. But when file upload error happens, my hidden fields 
> become empty.
> How to rectify this problem. Am I missing something.
> Thanks

We had the same issue in some of our apps, too.
When the size of the uploaded file exceeds the configured max value the 
whole request body is skipped.

As workaround we put the hidden fields not in the form but appended them 
to the POST-URL.

See this page for configuration options regarding file upload:


This Email was scanned by Sophos Anti Virus

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message