Re: Allow max. file upload size of more than 2gb in struts 2

2015-12-09 Thread Adam Brin
You may also want to check the docs:

https://struts.apache.org/docs/file-upload.html

which has a section on size limits.

> On Dec 9, 2015, at 1:38 AM, punter  wrote:
> 
> 
> Hello,
> I am using Struts 2.1 in my project. For the file upload process, is it 
> possible to supersede the normal 2 gb file limit for struts2.The struts.xml 
> maxsize element in my project is as follows :
>             value="2147483648" />
> Please update me the process to allow more than 2gb (Upto 3 or 4 gb) file 
> uploads in struts 2.1.
> Thanks,Saurabh 


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



Re: Allow max. file upload size of more than 2gb in struts 2

2015-12-09 Thread Christoph Nenning
> Hello,
> I am using Struts 2.1 in my project. For the file upload process, is
> it possible to supersede the normal 2 gb file limit for struts2.The 
> struts.xml maxsize element in my project is as follows :
>               value="2147483648" />
> Please update me the process to allow more than 2gb (Upto 3 or 4 gb)
> file uploads in struts 2.1.
> Thanks,Saurabh 


Usually application-servers or servlet-containers have their own max size 
limit. Have you checked that?

E.g. tomcat has a parameter maxPostSize (if you are using that one):

http://tomcat.apache.org/tomcat-8.0-doc/config/http.html


Regards,
Christoph


This Email was scanned by Sophos Anti Virus


Allow max. file upload size of more than 2gb in struts 2

2015-12-09 Thread punter

Hello,
I am using Struts 2.1 in my project. For the file upload process, is it 
possible to supersede the normal 2 gb file limit for struts2.The struts.xml 
maxsize element in my project is as follows :
 
Please update me the process to allow more than 2gb (Upto 3 or 4 gb) file 
uploads in struts 2.1.
Thanks,Saurabh 

RE: How to limit file upload size without full upload

2009-06-15 Thread Martin Gainty


i assume thats the RLE of the entity you are streaming? in which case 
maxPostSize will
alleviate that limitation on a non-ssl HTTP 1.1 connector

there are now asynchronous connectors available which will alleviate
the majority of performance issues you are experiencing which wont be discussed 
here
(the topic of asynch connectors is off-topic to struts and is specific to 
container)

when you *finally* do arrive to the issue of whether or not to use 
commons-fileupload or
struts-fileupload tag with a collection or not to use a collection the 
implementation
details are easily discernible from the doc and can be handled by list members

the topic of transporting large files (which you will encounter with 
file-uploading)
is a topic worthy of serious consideration and has many implications for 
container architects

i believe thinking of a overall solution (vis a vis size,compression and 
securty) and work to smaller iterations is a good methodology to follow..others 
have their own methodologies

please feel free to ping me O/L for more discussion on use of asynchronous 
connectors..
and yes continue to ping list for implementation details on struts tags (such 
as CFU)

thanks
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.


> Date: Mon, 15 Jun 2009 09:51:28 -0400
> Subject: Re: How to limit file upload size without full upload
> From: w...@wantii.com
> To: user@struts.apache.org
> 
> I've been known to be wrong before ;) unfortunately, more often than I
> would prefer :(
> 
> The next setting I would look at is in commons-fileupload, but with
> the stock file upload capabilities, you don't have a lot of options
> for changing configuration. I didn't look really close at how CFU
> behaves, but if you came back and said that it waits until the upload
> is complete before checking file size, I wouldn't be surprised. IIRC,
> the content size sent by the browser as part of the upload is not
> always reliable, leaving the upload handler to check size as it is
> receiving data. IMO, it might be hard to make it work right.
> Fortunately, there is a plugin in the sandbox that makes the upload
> capabilities more configurable, but unfortunately, you have to be
> running against a SNAPSHOT build of struts, since I had to update core
> to allow some of the configuration. If you wanna play around with it,
> since it's unreleased, be prepared to build struts and the plugin from
> scratch with maven and be patient if you find bugs.
> 
> On Mon, Jun 15, 2009 at 9:31 AM, Greg Lindholm wrote:
> >
> >
> > On Sun, Jun 14, 2009 at 1:49 AM, Wes Wannemacher  wrote:
> >>
> >> On Saturday 13 June 2009 10:34:53 pm tatan123 wrote:
> >> > We want to restrict the file upload size to 2 MB. While doing testing it
> >> > seems we can upload a 100 MB file, after that struts2 showing message
> >> > that
> >> > the uploaded file exceeds the max file size limit. Is there any way
> >> > struts2
> >> > can show the error message without full file upload...
> >> >
> >> > Thanks
> >>
> >> I could be wrong, but if you are talking about the temp file generated as
> >> the
> >> upload takes place, then you might be better off setting the max post size
> >> of
> >> your application server. In Tomcat, you can use the maxPostSize attribute
> >> of
> >> the connector element.
> >>
> >> -Wes
> >> --
> >>
> >>
> >
> > I don't think the Tomcat maxPostSize attribute applies to file uploads.
> > Here is what the Tomcat 5.5 docs say:
> >
> > The maximum size in bytes of the POST which will be handled by the container
> > FORM URL parameter parsing. The limit can be disabled by setting this
> > attribute to a value less than or equal to 0. If not specified, this
> > attribute is set to 2097152 (2 megabytes).
> >
> > I've never set this attribute and have been able to upload 20mb files.
> >
> >
> 
> 
> 
> -- 
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

Re: How to limit file upload size without full upload

2009-06-15 Thread Wes Wannemacher
I've been known to be wrong before ;) unfortunately, more often than I
would prefer :(

The next setting I would look at is in commons-fileupload, but with
the stock file upload capabilities, you don't have a lot of options
for changing configuration. I didn't look really close at how CFU
behaves, but if you came back and said that it waits until the upload
is complete before checking file size, I wouldn't be surprised. IIRC,
the content size sent by the browser as part of the upload is not
always reliable, leaving the upload handler to check size as it is
receiving data. IMO, it might be hard to make it work right.
Fortunately, there is a plugin in the sandbox that makes the upload
capabilities more configurable, but unfortunately, you have to be
running against a SNAPSHOT build of struts, since I had to update core
to allow some of the configuration. If you wanna play around with it,
since it's unreleased, be prepared to build struts and the plugin from
scratch with maven and be patient if you find bugs.

On Mon, Jun 15, 2009 at 9:31 AM, Greg Lindholm wrote:
>
>
> On Sun, Jun 14, 2009 at 1:49 AM, Wes Wannemacher  wrote:
>>
>> On Saturday 13 June 2009 10:34:53 pm tatan123 wrote:
>> > We want to restrict the file upload size to 2 MB. While doing testing it
>> > seems we can upload a 100 MB file, after that struts2 showing message
>> > that
>> > the uploaded file exceeds the max file size limit. Is there any way
>> > struts2
>> > can show the error message without full file upload...
>> >
>> > Thanks
>>
>> I could be wrong, but if you are talking about the temp file generated as
>> the
>> upload takes place, then you might be better off setting the max post size
>> of
>> your application server. In Tomcat, you can use the maxPostSize attribute
>> of
>> the connector element.
>>
>> -Wes
>> --
>>
>>
>
> I don't think the Tomcat maxPostSize attribute applies to file uploads.
> Here is what the Tomcat 5.5 docs say:
>
> The maximum size in bytes of the POST which will be handled by the container
> FORM URL parameter parsing. The limit can be disabled by setting this
> attribute to a value less than or equal to 0. If not specified, this
> attribute is set to 2097152 (2 megabytes).
>
> I've never set this attribute and have been able to upload 20mb files.
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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



Re: How to limit file upload size without full upload

2009-06-15 Thread Greg Lindholm
On Sun, Jun 14, 2009 at 1:49 AM, Wes Wannemacher  wrote:

> On Saturday 13 June 2009 10:34:53 pm tatan123 wrote:
> > We want to restrict the file upload size to 2 MB. While doing testing it
> > seems we can upload a 100 MB file, after that struts2 showing message
> that
> > the uploaded file exceeds the max file size limit. Is there any way
> struts2
> > can show the error message without full file upload...
> >
> > Thanks
>
> I could be wrong, but if you are talking about the temp file generated as
> the
> upload takes place, then you might be better off setting the max post size
> of
> your application server. In Tomcat, you can use the maxPostSize attribute
> of
> the connector element.
>
> -Wes
> --
>
>
>
I don't think the Tomcat maxPostSize attribute applies to file uploads.
Here is what the Tomcat 5.5 docs say:

The maximum size in bytes of the POST which will be handled by the container
FORM URL parameter parsing. The limit can be disabled by setting this
attribute to a value less than or equal to 0. If not specified, this
attribute is set to 2097152 (2 megabytes).

I've never set this attribute and have been able to upload 20mb files.


Re: How to limit file upload size without full upload

2009-06-13 Thread Wes Wannemacher
On Saturday 13 June 2009 10:34:53 pm tatan123 wrote:
> We want to restrict the file upload size to 2 MB. While doing testing it
> seems we can upload a 100 MB file, after that struts2 showing message that
> the uploaded file exceeds the max file size limit. Is there any way struts2
> can show the error message without full file upload...
>
> Thanks

I could be wrong, but if you are talking about the temp file generated as the 
upload takes place, then you might be better off setting the max post size of 
your application server. In Tomcat, you can use the maxPostSize attribute of 
the connector element.

-Wes
-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


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



How to limit file upload size without full upload

2009-06-13 Thread tatan123

We want to restrict the file upload size to 2 MB. While doing testing it
seems we can upload a 100 MB file, after that struts2 showing message that
the uploaded file exceeds the max file size limit. Is there any way struts2
can show the error message without full file upload...

Thanks
-- 
View this message in context: 
http://www.nabble.com/How-to-limit-file-upload-size-without-full-upload-tp24018123p24018123.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



[s2] file upload size validation indiced problems

2009-02-06 Thread Kawczynski, David
I have a form that has an  element.

When the upload exceeds that size, the input page is returned.  
Log4j records show this log message:
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (xxx) exceeds the configured
maximum (yyy)

All other form elements are blank; required fields show field errors.
The upload element does not show any field errors.
The action never receives the request.
Everything works as expected when the max file size is not exceeded.

Why don't I see the upload field's error?
What happened to all of the other field values?
How can this be fixed?

I'm using struts 2.1.2 w/ xwork 2.1.1
My action uses the default stack.
The application does not have a struts.properties file

I've tried adding a validate( ) method to my action class 
but that did not change things, so I removed it.


===
STRUTS.XML (edited for brevity) ===
===










/admin/siterequest/request_form_thanks.jsp
/admin/siterequest/request_form.jsp




===
JSP PAGE (edited for brevity) =
===
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>















===
ACTION CLASS (edited for brevity) =
===
public class SiteRequestAction extends ActionSupport 
implements Preparable, SessionAware {

public String save() {
try {
this.siteRequestFacade.save(this.siteRequest);
return "success";
}
catch (Throwable exception) {
logger.error("Unable to save SiteRequest: ", exception);
return "input";
}
}
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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



Re: About incresing file upload size in Struts 2

2008-11-23 Thread Lukasz Lenart
2008/11/22 Hardik Shah <[EMAIL PROTECTED]>:
> can anybody give me detailed configuration to increase size of file upload in
> struts 2.0.11.2

Take a look on that
http://struts.apache.org/2.x/docs/how-do-we-upload-files.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



About incresing file upload size in Struts 2

2008-11-21 Thread Hardik Shah

can anybody give me detailed configuration to increase size of file upload in
struts 2.0.11.2

please help me
-- 
View this message in context: 
http://www.nabble.com/About-incresing-file-upload-size-in-Struts-2-tp20633816p20633816.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 file upload size validation

2008-05-09 Thread Rubbinio


mgainty wrote:
> 
> 2.0.11 FileUploadIntereptor.java
> 
> ActionContext ac = invocation.getInvocationContext();
> HttpServletRequest request = (HttpServletRequest) 
> ac.get(ServletActionContext.HTTP_REQUEST);
> HashMap map = request.getParameterMap();
> //for further information take a look at
> http://www.docjar.com/docs/api/javax/servlet/ServletRequest.html#getParameterMap
> 
> 

Tried that and it works as long as the file size validation does not fail in
the interceptor. If it fails the parameter map is empty. Any other ideas.

-- 
View this message in context: 
http://www.nabble.com/Struts-2-file-upload-size-validation-tp17112411p17146914.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 file upload size validation

2008-05-08 Thread Rubbinio

Yes if the file size is OK everything is fine. At first we used the default
stack. Then we took the default and modified it by moving the
fileUploadInterceptor below the params interceptor so it would look
something like this:


interceptor-stack name="ourUploadStack"

interceptor-ref name="exception"

interceptor-ref name="alias"

interceptor-ref name="servletConfig"

interceptor-ref name="prepare"

interceptor-ref name="i18n"

interceptor-ref name="chain"

interceptor-ref name="debugging"

interceptor-ref name="profiling"

interceptor-ref name="scopedModelDriven"

interceptor-ref name="modelDriven"

interceptor-ref name="checkbox"

interceptor-ref name="staticParams"

interceptor-ref name="params"

  param name="excludeParams"dojo\..*param

interceptor-ref

interceptor-ref name="conversionError"

interceptor-ref name="fileUpload"

interceptor-ref name="validation"

param name="excludeMethods"input,back,cancel,browseparam

interceptor-ref

interceptor-ref name="workflow"

param name="excludeMethods"input,back,cancel,browseparam

interceptor-ref

interceptor-stack



Thanks
R



Laurie Harper wrote:
> 
> Rubbinio wrote:
>> Hi,
>> 
>> we are trying to use file upload in Struts 2 and run into the following
>> problem.
>> 
>> We have a form with multiple fields among which one is a file input
>> field.
>> The user must complete the form and then select a file to upload. If the
>> file size is larger than what we specify in the struts.properties the
>> FileUploadInterceptor validates and adds the error. Up to here everything
>> is
>> fine however upon having the error passed to the action we want to return
>> to
>> the same form, display the error and have the rest of fields populated
>> with
>> the values the user has inputed (except the file field).
>> 
>> The problem is that when we get in the action (validate method) none of
>> the
>> request parameters (form values) are populated. Everything is empty.
>> 
>> The question is why is this happening and how can we have the form values
>> populated in the action so that we can display the page correctly ?
> 
> What interceptor stack are you using? Does everything work as expected 
> if the file size does not exceed the size you specify?
> 
> L.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-file-upload-size-validation-tp17112411p17125070.html
Sent from the Struts - User mailing list archive at Nabble.com.


Re: Struts 2 file upload size validation

2008-05-07 Thread Laurie Harper

The OP wrote:
>> we are trying to use file upload in Struts 2...

Martin wrote:

Struts 1.2.9


Doh!


org.apache.struts.chain.servlet.validateActionForm
where the validate method is declared as

protected ActionErrors validate(Context context,
   ActionConfig actionConfig,
   ActionForm actionForm)
//reference the actionForm for access to the form attributes

2.0.11 FileUploadIntereptor.java

ActionContext ac = invocation.getInvocationContext();
HttpServletRequest request = (HttpServletRequest) 
ac.get(ServletActionContext.HTTP_REQUEST);

HashMap map = request.getParameterMap();
//for further information take a look at
http://www.docjar.com/docs/api/javax/servlet/ServletRequest.html#getParameterMap 



HTH
M
- Original Message - From: "Rubbinio" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, May 07, 2008 3:24 PM
Subject: Struts 2 file upload size validation




Hi,

we are trying to use file upload in Struts 2 and run into the following
problem.

We have a form with multiple fields among which one is a file input 
field.

The user must complete the form and then select a file to upload. If the
file size is larger than what we specify in the struts.properties the
FileUploadInterceptor validates and adds the error. Up to here 
everything is
fine however upon having the error passed to the action we want to 
return to
the same form, display the error and have the rest of fields populated 
with

the values the user has inputed (except the file field).

The problem is that when we get in the action (validate method) none 
of the

request parameters (form values) are populated. Everything is empty.

The question is why is this happening and how can we have the form values
populated in the action so that we can display the page correctly ?

Thanks
--
View this message in context: 
http://www.nabble.com/Struts-2-file-upload-size-validation-tp17112411p17112411.html 


Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 file upload size validation

2008-05-07 Thread Laurie Harper

Rubbinio wrote:

Hi,

we are trying to use file upload in Struts 2 and run into the following
problem.

We have a form with multiple fields among which one is a file input field.
The user must complete the form and then select a file to upload. If the
file size is larger than what we specify in the struts.properties the
FileUploadInterceptor validates and adds the error. Up to here everything is
fine however upon having the error passed to the action we want to return to
the same form, display the error and have the rest of fields populated with
the values the user has inputed (except the file field).

The problem is that when we get in the action (validate method) none of the
request parameters (form values) are populated. Everything is empty.

The question is why is this happening and how can we have the form values
populated in the action so that we can display the page correctly ?


What interceptor stack are you using? Does everything work as expected 
if the file size does not exceed the size you specify?


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 file upload size validation

2008-05-07 Thread Martin

Struts 1.2.9
org.apache.struts.chain.servlet.validateActionForm
where the validate method is declared as

protected ActionErrors validate(Context context,
   ActionConfig actionConfig,
   ActionForm actionForm)
//reference the actionForm for access to the form attributes

2.0.11 FileUploadIntereptor.java

ActionContext ac = invocation.getInvocationContext();
HttpServletRequest request = (HttpServletRequest) 
ac.get(ServletActionContext.HTTP_REQUEST);

HashMap map = request.getParameterMap();
//for further information take a look at
http://www.docjar.com/docs/api/javax/servlet/ServletRequest.html#getParameterMap

HTH
M
- Original Message - 
From: "Rubbinio" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, May 07, 2008 3:24 PM
Subject: Struts 2 file upload size validation




Hi,

we are trying to use file upload in Struts 2 and run into the following
problem.

We have a form with multiple fields among which one is a file input field.
The user must complete the form and then select a file to upload. If the
file size is larger than what we specify in the struts.properties the
FileUploadInterceptor validates and adds the error. Up to here everything 
is
fine however upon having the error passed to the action we want to return 
to
the same form, display the error and have the rest of fields populated 
with

the values the user has inputed (except the file field).

The problem is that when we get in the action (validate method) none of 
the

request parameters (form values) are populated. Everything is empty.

The question is why is this happening and how can we have the form values
populated in the action so that we can display the page correctly ?

Thanks
--
View this message in context: 
http://www.nabble.com/Struts-2-file-upload-size-validation-tp17112411p17112411.html

Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 2 file upload size validation

2008-05-07 Thread Rubbinio

Hi,

we are trying to use file upload in Struts 2 and run into the following
problem.

We have a form with multiple fields among which one is a file input field.
The user must complete the form and then select a file to upload. If the
file size is larger than what we specify in the struts.properties the
FileUploadInterceptor validates and adds the error. Up to here everything is
fine however upon having the error passed to the action we want to return to
the same form, display the error and have the rest of fields populated with
the values the user has inputed (except the file field).

The problem is that when we get in the action (validate method) none of the
request parameters (form values) are populated. Everything is empty.

The question is why is this happening and how can we have the form values
populated in the action so that we can display the page correctly ?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Struts-2-file-upload-size-validation-tp17112411p17112411.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to programmatically set the maximum file upload size and allowed file types (FileUploadInterceptor)

2008-04-29 Thread Cheng Wei Lee
Is there a way to do this programmatically rather than declaratively?

Thanks!


Re: File Upload Size

2008-03-20 Thread Lukasz Lenart
> No it doesn't

Maybe that's the problem, FileUploadInterceptor check if action
implements it and add error messages. If you implement it, remember to
add result name=input.


Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload Size

2008-03-20 Thread Richard Sayre
No it doesn't

On Wed, Mar 19, 2008 at 2:14 PM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> Does your action implements ValidationAware interface?
>
>
>
>
>
>  Regards
>  --
>  Lukasz
>
>  http://www.linkedin.com/in/lukaszlenart
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload Size

2008-03-19 Thread Lukasz Lenart
Does your action implements ValidationAware interface?



Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload Size

2008-03-19 Thread Lukasz Lenart
Hi,

You can subclass FileUploadInterceptor and override acceptFile(File
file, String contentType, String inputName, ValidationAware
validation, Locale locale) method


Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload Size

2008-03-19 Thread Richard Sayre
The reason I am asking this is bacuase when I upload a file over 15MB
I get "no result mapped for INPUT" exception in my error log.  When I
do map a result for input the app hangs. I looked at the file upload
in the struts showcase and it returns an error message when the file
you upload is too big.  I checked the source and I could not find
where this is being implemented.  I have  on my page
which i return input to, but as I said earlier my upload action is
hanging.

On Wed, Mar 19, 2008 at 1:12 PM, Richard Sayre <[EMAIL PROTECTED]> wrote:
> I set the file upload max size in the struts.properties to 15MB.  When
>  I upload a file over 15MB my action returns input.  Is there any way I
>  can check to see if the file is over the max size set in the
>  properties file and handle what result I want to happen myself?  I
>  seems that it returns input before it even goes into my action.  Is
>  this happening in the file upload interceptor?  Can I gain more
>  control over this?
>
>  Thank you,
>
>  Rich
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



File Upload Size

2008-03-19 Thread Richard Sayre
I set the file upload max size in the struts.properties to 15MB.  When
I upload a file over 15MB my action returns input.  Is there any way I
can check to see if the file is over the max size set in the
properties file and handle what result I want to happen myself?  I
seems that it returns input before it even goes into my action.  Is
this happening in the file upload interceptor?  Can I gain more
control over this?

Thank you,

Rich

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]