Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks Laurie! That's a pretty good idea, and quite possibly what we'll do. The problem with it is that the file is sent along with other form parameters, and if I remember correctly, the Content-Length header is the full length of the body of the post, which would include all the text for those pa

Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread Laurie Harper
Adam Gordon wrote: We're using Struts 1.2.9 and the problem we're seeing is that if a user tries to upload a file that does not exist or upload a file that exceeds the maxFileSize attribute the FormFile object on the ActionForm is null and so we cannot distinguish between the two. We thought

Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks for your response Martin, but as Dave pointed out, we do not have that interface available as we are using 1.2.9. Does anybody know at what point the framework begins to actually save a FormFile and if there is any way to hook into that and check the length before that happens? On Feb 7, 20

Re: File upload issues when maxFileSize is exceeded.

2008-02-07 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > take a look at implementing FileUploadAction > http://jsourcery.com/api/apache/struts/2.0.6/org/apache/struts2/showcase/fil > eupload/FileUploadAction.html "Adam Gordon" <[EMAIL PROTECTED]> wrote: > > We're using Struts 1.2.9 Dave

Re: File upload issues when maxFileSize is exceeded.

2008-02-07 Thread Martin Gainty
ent: Thursday, February 07, 2008 6:35 PM Subject: File upload issues when maxFileSize is exceeded. > We're using Struts 1.2.9 and the problem we're seeing is that if a user > tries to upload a file that does not exist or upload a file that exceeds > the maxFileSize attribute the Fo

File upload issues when maxFileSize is exceeded.

2008-02-07 Thread Adam Gordon
We're using Struts 1.2.9 and the problem we're seeing is that if a user tries to upload a file that does not exist or upload a file that exceeds the maxFileSize attribute the FormFile object on the ActionForm is null and so we cannot distinguish between the two. We thought about removing the m