Re: Proper upload streaming?!

Kevin Windham <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On Apr 24, 2006, at 4:41 AM, Will Scheidegger wrote:

> I'm looking for a solution for proper upload streaming in WO. I  
> want the user to be able to upload a lot of data (file upload) to  
> my WO app and want
> Result with all 3 attempts:
> - A long period with no visible action at all
> - Then the upload appears within a second

I suspect what you are seeing here is the browser preparing the post  
response. The format that browsers upload with requires a boundary to  
be assigned in the headers preceding the data. This boundary has to  
be checked to make sure it doesn't exist in the file being uploaded.  
If it did, it would mess up the parsing of the post data. The bigger  
the file the longer this check takes. I'm not sure but there may be  
some implementations that use probability to predetermine a boundary  
that doesn't exist in the file, but I've noticed the slow start  
behavior on all the browsers I tested with when writing my own parser  
for doing uploads a while back.

HTH,
Kevin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.