Puzzling form/cgi problem

Peter Hansen peter at engcorp.com
Sun Nov 2 23:39:03 CET 2003

Dfenestr8 wrote:
> I have a problem with a subroutine in a cgi script that's supposed to
> return the byte location at the end of a file, which the script then
> stores as a hidden input on a web form.
> Unfortunately, even though it works fine in the python shell, in the
> cgi-script it always returns "0". That's no use to me at all.

Not sure about a fix for the seek() problem, by can't you just use
os.stat() to get the size of the file?


More information about the Python-list mailing list