> > The extract boundary (as stored in the boundary variable in
> > readReqeust()) is:
> >
> > -----------------------------7cf11814838,multipart/form-data;
> > boundary=---------------------------7cf11814838,multipart/form-data;
> > boundary=---------------------------7cf11814838
>
> Are you saying that the variable contains all three lines above, with
> \r\n's and everything?  I can't see how that would happen.

Actually, the newlines are not part of it, and that may either be a result
of the email being formated or when I pasted it from my logs.  It's just one
line string, with THREE boundary= parts!


> Does this happen with every file upload you try?  For example, does it
> happen when you send just parameters (use multipart/form-data but don't
> have any "file" parameters), when you send simple files, and so on?
> I've not heard reports about IE4 doing anything like this before so I'm
> wondering what's different about your situation.

Unfortunately, this is a user of our site that is reporting the problem, and
I've added debug statements to see the contents of the variables.  The
person is not uploading an image at the time.  On my systems (and we have
many others who have posted successfully), with both IE4 and IE5 on Win95
and Win98, I've not had any problems.  But, we did run into one IE5 problem
in which the boundary values did not match.  This is the first time I've
seen the multi-boundary problem.

> What server are you using?  WebSphere 2.02 has caused a lot of people
> problems by returning inaccurate headers.  Might that be what you're
> using?  WS 3.0 appears better.

I'm using Apache 1.3.9.

I'll see how much debugging help I can get from this user -- it's rather
embarrassing to ask your customer to debug for me, but what can I do since I
can't reproduce it myself? <smile/tear>

As another hack attempt at fixing this, I'm going to use
lastIndexOf("boundary=") instead of indexOf("boundary=") in your method
extractBoundary().  This should work in the case of a normal, single
boundary= situation -- and it does on my test systems -- but MAY also work
in this odd bug from this person's browser.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to