Without testing this myself, have you tried
InputStream.close() or does lead IE to assume the
page is broken?
Yes, Adrian- I tried that too- but to no avail- if the stream is closed before it is completely read it will still not redirect in IE.
The only times it redirects without reading the stream completely is when the uploaded file is very small- I think IE has opened up a socket connection and until all the packets have arrived the browser will not close the connection. So when there is a redirect command with outstanding packets still there- it does redirect as the browser still has the connection open.
Perhaps if there were a way of closing the connection (without messing with the innards of Tomcat preferably)- that might work....This of course is speculation...
It seems like there must be some way without reading in a potentially large file....
meant to say (from last post):
So when there is a redirect command with outstanding packets still there- it does NOT redirect as the browser still has the connection open
I don't think there's much you can do if the browser
has wont read the response until the request has
been completed :-(