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 b

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

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 -

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-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 > > --

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 -

Struts 2 file upload size validation

2008-05-07 Thread Rubbinio
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

[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) A

Re: Struts 2 file upload size validation

2008-05-07 Thread Martin
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 us

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 th

Re: Struts 2 file upload size validation

2008-05-07 Thread Laurie Harper
, 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 uploa

Re: Struts 2 file upload size validation

2008-05-08 Thread Rubbinio
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-09 Thread Rubbinio
n 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]

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

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

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/ --

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 >

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 >

Re: How to limit file upload size without full upload

2009-06-15 Thread Wes Wannemacher
turday 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 limi

RE: How to limit file upload size without full upload

2009-06-15 Thread Martin Gainty
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 restr

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

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" /> > P

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

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!