You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sushil Dive <sd...@vertex.co.in> on 2009/05/05 17:03:33 UTC

file uploading and maxFileSize parameter

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.