You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Oguz Kologlu <oz...@optusnet.com.au> on 2007/07/16 06:06:30 UTC

[S2] Disable fileupload interceptor

Hi all,

I've a S1/S2 mixed application that uses a S1 action to upload files,  
however S2 keeps getting in the way and ripping out the uploaded data  
even though it is a S1 action being called.

Is there a way to disable the file upload interceptor so the S1  
action can handle the upload? Or at least access the value stack from  
S1 to retrieve the file?

Thanks
Oz



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


[SOLVED] Re: [S2] Disable fileupload interceptor

Posted by Oguz Kologlu <oz...@optusnet.com.au>.
I think the simplest way is to copy

org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper

to your classpath and change the

MultiPartRequestWrapper(..)

method to ignore the content.

I've put in a enhancement request in jira for a configuration item to  
disable Multipart request parsing - we'll see what happens.

HTH anyone in the same boat
Oz


On 16/07/2007, at 2:06 PM, Oguz Kologlu wrote:

> Hi all,
>
> I've a S1/S2 mixed application that uses a S1 action to upload  
> files, however S2 keeps getting in the way and ripping out the  
> uploaded data even though it is a S1 action being called.
>
> Is there a way to disable the file upload interceptor so the S1  
> action can handle the upload? Or at least access the value stack  
> from S1 to retrieve the file?
>
> Thanks
> Oz
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>