You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeroen Simons <je...@gmail.com> on 2008/10/01 07:48:53 UTC

FileUpload + Token interceptor problem

Hi,

I have a problem when using the token and fileUpload interceptor  
together (Struts 2.0.11.2).

When I put fileUpload before token in my interceptor stack and I  
upload a file larger than the maximum allowed I get 2 error messages:

     *  the request was rejected because its size (14544755) exceeds  
the configured maximum (2097152)
     * The form has already been processed or no token was supplied,  
please try again.

When I put token before fileUpload in my interceptor stack and I  
upload a file larger than the maximum allowed I get 1 error messages:

     * The form has already been processed or no token was supplied,  
please try again.

Does someone know how to get just the one error message when  
uploading a file larger than maximum ?
And only get the token error message when posting the form twice ?

Thanks!

Jeroen




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