cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Stochmialek <mi...@e-informatyka.pl>
Subject Re: max upload size, how to validate?
Date Tue, 29 Jun 2004 14:45:57 GMT
On Tue, Jun 29, 2004 at 04:35:05PM +0200, Sylvain Wallez wrote:

> >Can you tell me how to validate uploaded file (using woody/cocoon 2.1.5)? 
> >
> >I've set upload-max-size in configuration, but when user uploads file
> >which exceeds this limit IOException is thrown. It isn't even  handled
> >by handle-error block in sitemap, so I could show some meanful message.
> >It's handled by notifing generator...
> >
> >Woody validator would be the best solution... Or something like accept
> >attribute for content type...
> > 
> >
> 
> You can specify a list of acceptable mime-types on the upload widget. 
> But the upload size is handled directly by CocoonServlet, i.e. before we 
> enter the sitemap. So there's currently no way to catch excessively 
> large uploads in a clean way.

:/ ... any way, thanks, regards,
-- 
Michal Stochmialek <misto@e-informatyka.pl>

Mime
View raw message