[Zope] Re: Tracking upload of files to Zope

Passin, Tom tpassin at mitretek.org
Tue Sep 30 13:48:26 EDT 2003


[ Gitte Wange]

> Browsers?
> No ... they just load the new page - that's what make the 
> users think the
> website has fallen into sleep and they start clicking all 
> sorts of things.
> 
> > For every other approach, there is simply no channel in the
> > HTTP-protocol to output the information to.
> > 
> > So the question about how to get the information is completely
> > secondary :-)
> 
> Hmmm .. so Zope doesn't know how much data it has received ?
> 
> > IF you want to watch uploads for debugging purpose, and files
> > are huge, you can try "lsof" in the temp directory.

I can imagine one way to do this, if you can get the number of bytes
uploaded so far.  It would be a bit cumbersome, though.  Here goes  -

The command to start the upload opens a new window.  That window has a
meta element that causes the page to reload, say every five seconds.
The page for the automatic reload displays the bytes uplaoded so far.
When the upload is complete, the next reload has the window close itself
(using javascript), or else it just announces that the upload is
complete.

Personally, I doubt that it is worth it.  It is easier to load a static
page that just says "upload in progress..." or something like that.

Cheers,

Tom P



More information about the Zope mailing list