cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: max upload size, how to validate?
Date Tue, 29 Jun 2004 14:35:05 GMT
Michal Stochmialek wrote:

>Hello,
>
>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.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


Mime
View raw message