You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Badri <ba...@patni.com> on 2004/03/19 11:23:56 UTC

FormFile Upload restrictions

Hi,

Is there any size restriction in uploading any file using the FormFile?
If there are any restrictions in file upload, what should be the maximum
file size that can be uploaded?
Are there any other ways of using FormFile and uploading files as large as
800MB - 1GB?

Thanks in advance.

Thanks and Regards
D.Badrinarayanan


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


Re: FormFile Upload restrictions

Posted by Joe Germuska <Jo...@Germuska.com>.
At 3:53 PM +0530 3/19/04, Badri wrote:
>Hi,
>
>Is there any size restriction in uploading any file using the FormFile?
>If there are any restrictions in file upload, what should be the maximum
>file size that can be uploaded?
>Are there any other ways of using FormFile and uploading files as large as
>800MB - 1GB?

File-upload has a threshold after which it writes uploads to disk 
instead of holding them in memory, so in theory, there are no 
software limitations.  You might run into server or network issues 
with uploads that large, but the risk of a webapp OutOfMemoryError is 
controlled by this threshold.  These values are set in the 
controller-config; see the docs for struts-config.xml for details.

Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
       "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
             -- Jef Raskin

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