Ricky,
The maximum upload size is represented as an init-param for ActionServlet:
To set it as an init-param in web.xml:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>100K</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
The value of "maxFileSize" can be represented as in bytes by not appending
any
characters to the end, kilobytes by appending a "K" at the end, megabytes by
appending an "M" at the end, and gigabytes by appending a "G" at the end.
Example:
100 bytes:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>100</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
100 kilobytes:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>100K</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
100 Megabytes:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>100M</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
100 Gigabytes
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>100G</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
-----Original Message-----
From: Ricky Frank [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: RE: file upload problems
Can you also provide an example of the tag for limiting the size of the
file uploaded? Or is this not supported? I've dug through some of the
underlying code and it looks like it is but I don't see anything in the tag
definition on how to invoke this limitation. Thanks. Ricky Frank
At 12:10 PM 9/10/2001 -0400, you wrote:
>Rightfully Disgruntled File Upload Users,
>
>I'll set aside some time next week to address
>all the file upload issues, I apologize for the
>long delay.
>
>In the interim, please use bug reports
>(http://nagoya.apache.org/bugzilla/)
>to report all file upload issues that you
>come across. Check to see if it's reported,
>if not, go ahead and do so. This notifies
>me directly.
>
>
>-----Original Message-----
>From: Tom Tibbetts [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 10, 2001 9:59 AM
>To: [EMAIL PROTECTED]
>Subject: file upload mangling files
>
>
>Hi. What's the status on fixing the file upload problem of files getting
>mangled? I use Struts ver 1.0. Is there a fix available??? Thanks, This
>is very important to us. Tom Tibbetts
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com