struts-user mailing list archives

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

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:

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?


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

Please advise.

Thanks in advance.



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