durusmail: quixote-users: Problems with uploading demo
Problems with uploading demo
2002-11-18
2002-11-18
Problems with uploading demo
xtian
2002-11-18
Hi -

I've just started looking at Quixote, and it seems very simple and powerful.
I've been playing with the demos, but I'm having trouble with the upload
functionality. I've had a look through the archives, but I can't see
anything mentioning my problem.

When I upload a file, the temp file gets created in the upload_dir, but
there's an error generated from HTTPUploadRequest.check_length_read, where
for some reason the Content-Length header doesn't match the value returned
by Upload.get_bytesread.

The error is:
Unable to parse HTTP request.
Invalid request: upload request length mismatch: expected 1999 bytes, got
1954

Comparing the orginal file with the temporary one shows that they're
identical, both with 1704 bytes (I assume the extra bytes are from the MIME
wrapper?).
I can make it run happily by commenting out the call to check_length_read in
process_inputs, but I'd rather not have to do that. Does anyone have any
suggestions?

I'm on Win98, using Xitami 2.4d9. Could it be anything to do with
line-ending chars? Or is the webserver setting up the CGI environment
incorrectly?

Thanks,
xtian


reply