Damjan
gdamjan at mail.net.mk
Wed Mar 23 13:02:56 EST 2005
> Does anyone have any links to a file upload progress indicator similar > to megaupload but written in Python? > > If not, does anyone have an idea as to how to find the size of the file > being uploaded and the bytes transferred so far? Why not analyze megaupload or http://freshmeat.net/projects/progressbar/ how they do it ... I guess the client sends a Content-length header and then you can write a loop like this: req.read(1024) percent = 1024/length * 100 req.write(SOME_HTML_DISPLAYING_PERCENT % percent) -- damjan | дамјан This is my jabber ID --> damjan at bagra.net.mk <-- not my mail address!!!
|