struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sushil Dive <sd...@vertex.co.in>
Subject file uploading and maxFileSize parameter
Date Tue, 05 May 2009 15:03:33 GMT
Hi,

maxFileSize parameter in struts configuration file holds maximum file 
size allowed to upload.

I want to restrict file size to be uploaded to 20MB.  For this i setup 
the parameter value as below:

<controller 
processorClass="org.apache.struts.tiles.TilesRequestProcessor" 
memFileSize="1M" maxFileSize="20M" />

Does it mean following:

What happens when user uploads file with size more than 20M

a. The file will be uploaded to server completely and then exception is 
be thrown to user about exceeding file size?

OR

b. When size of bytes uploaded to server exceeds 20M, exception is 
thrown to user about exceeding file size.

Please advise.

Thanks in advance.

Regards,
Sushil

Disclaimer: http://www.vertexsoft.com/corporate/email_disclaimer.html

Please do not print this email unless it is absolutely necessary.
Mime
View raw message