CGI module callback / upload hook

D

Dominik Blystak

Hi,

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)

regards,
Dominik Blystak
 
T

Tim Roberts

Dominik Blystak said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top