CGI module callback / upload hook

Tim Roberts timr at
Fri Jan 20 08:11:20 CET 2006

Dominik Blystak <Dominik.Blystak at> 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, but it's not hard to derive your own.  I
suspect read_binary is all you would need to override.
- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list