struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
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 
are
> pre populated. But when file upload error happens, my hidden fields 
values
> 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:

https://cwiki.apache.org/confluence/display/S2PLUGINS/Advanced+Fileupload+Plugin



Regards,
Christoph

This Email was scanned by Sophos Anti Virus

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