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
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
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
--- 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
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
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
6 matches
Mail list logo