On 2005.12.27, Tilmann Singer <[EMAIL PROTECTED]> wrote:
> Like it has been posted to this list a few months ago, (
> http://thread.gmane.org/gmane.comp.web.aolserver/12240 ), tracking
> upload progress of POST data is unfortunately not possible without a
> lot of C hacking on the core.
> 
> Will there be any change in this in a near future version of
> Aolserver? I read on this list that in Aolserver 4.5 a new API for
> handling tmp upload files will be available. Will this possibly
> contain the ability to track upload progress?

What's the use case you're looking to implement?  If it's small file
uploads, it's probably just simpler to "fake it" using an animated
spinwait image.

If you're handling large file uploads and need somewhat accurate display
of progress, then yes, a change to the core will need to be made to
expose the bytes received in one conn thread to another conn thread.  If
security isn't a big concern (how bad is it if a user is able to find
out the progress of another user's upload?) then implementing this
change isn't necessarily a /lot/ of hacking around.

What would be the best way of exposing this as a Tcl command, though?
I'm thinking "ns_info conn $threadId" which returns a Tcl list of
information about a conn.

-- Dossy

-- 
Dossy Shiobara              | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to