struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc <ruch...@gmx.de>
Subject Re: File Upload size restriction ??--another question--urgent
Date Mon, 30 Jun 2003 10:58:52 GMT
Prashanth.S wrote:
> Hi all,
> Is there any limit on the size of the file to be uploaded when i use struts...
> Iam using FormFile interface for struts upload...
> Is  there  any limit on the size of the file that is being uploaded...Iam getting error
when i am uploading large files even though iam not using any validations...
> Waiting for reply
> Thanking you
> Prashanth

Don't know about the TomCat capacity with file-uploads, but you must 
define the upload-buffer size within the <controler> Tag in your 
struts-config XML.

The Struts docu says:

'maxFileSize - The maximum size (in bytes) of a file to be accepted as a 
file upload. Can be expressed as a number followed by a "K", "M", or 
"G", which are interpreted to mean kilobytes, megabytes, or gigabytes, 
respectively. [250M] (optional)'

So if not set, the upload should be limited to 250 MBytes.

Regards

Markus



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message