You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcolino <ma...@webeffects.it> on 2006/10/24 11:16:42 UTC

2 different FormFile size restrictions

Hi,
a short question:

I have a /createShortEntry and a /createLargeEntry.
I want to limit filesize for /createShortEntry to 250kb and for 
/createLargeEntry to 350kb.

is this possible in a simple way?

Thanks, Markus



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


Re: 2 different FormFile size restrictions

Posted by Laurie Harper <la...@holoweb.net>.
Marcolino wrote:
> Hi,
> a short question:
> 
> I have a /createShortEntry and a /createLargeEntry.
> I want to limit filesize for /createShortEntry to 250kb and for 
> /createLargeEntry to 350kb.
> 
> is this possible in a simple way?
> 
> Thanks, Markus

No, you can only set a max upload size for the application as a whole. 
For what you want to do, you'd have to add logic in your actions' 
validation code.

L.


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