Enlightensoft's Blog

Helping in your each step

  • Categories

  • Authors

How to overrride fileUpload interceptor in struts 2?

Posted by Pankil Patel on March 29, 2010

<interceptor-ref name=”fileUpload”>
<param name=”maximumSize” >1024</param>
<param name=”allowedTypes”>image/png,image/gif,image/jpeg,image/jpg</param>
</interceptor-ref>

Just put those lines inside of your action definition in your struts.xml.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: