CGI module callback / upload hook
Tim Roberts
timr at probo.com
Fri Jan 20 02:11:20 EST 2006
Dominik Blystak <Dominik.Blystak at pro-open.de> wrote:
>
>I am currently working on an AJAX upload progress bar written in python. The
>AJAX part is almost done but I noticed that progress data is only written if
>the entire file is transfered which makes the whole progress bar pointless.
>
>Is there any way in calling a function while processing an upload?
>(e.g. like CGI::upload_hook() in perl)
Not in the standard cgi.py, but it's not hard to derive your own. I
suspect read_binary is all you would need to override.
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list