My impression is wrong, it uploads up to the max size specified then trigger
the exception. of course it will be very nice if it can reject when browser
sends the size command.


Angelo Chen wrote:
> 
> Hi,
> 
> I use following to limit file size during uploading, it seems to me that
> Tapestry-upload first the entire file then decide if the size is greater
> than 500k, example, if the file is 4mb, it will be accepted first, then
> reject it afterwards, is this correct? if yes, then is there other way to
> do the same thing? I'd like the checking of file size be done frist before
> the actuall uploading, any idea? thanks.
> 
> Angelo
> 
> // limit the size of uploading file 
> 
> public static void contributeApplicationDefaults( 
> MappedConfiguration<String, String> configuration) 
> { 
>       configuration.add(UploadSymbols.REQUESTSIZE_MAX, "1000000"); 
>         configuration.add(UploadSymbols.FILESIZE_MAX, "500000"); 
> } 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Tapestry-upload-and-FILESIZE_MAX-tp19202518p19210634.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to