[mod_python] File Upload Problem

Gregory (Grisha) Trubetskoy grisha at modpython.org
Mon Aug 4 11:44:15 EST 2003


As far as I can tell mod_python trats everything as binary.

Could you provide the HTML for the form, and also the code you use to get
the data from the file on the server - I suspect there may be something
there.

Grisha

On Fri, 1 Aug 2003, Ron Wills wrote:

>   I've seem to have found an oddity will binary file uploads with
> modpython on windows 2K. I've created a file upload form in which a zip
> can be upload to restore a mysql db. I use the util.FieldStorage class
> to parse the request and it seems to convert all \n characters in the
> binary file to \r\n.
>   It doesn't seem to be the browsers (Tested with Mozilla 1.3 1.4, EI 6
> and Opera) and I can't see it being Apache (Never run into this problem
> using PHP). Is there a way to tell modpython it's binary and not to do
> any conversions on the upload?
>
> Using:
> 	Win2K
> 	Apache 2.0.46
> 	modpython 3.0.3
>
>   Thanks for any help.
>
> --
> Ron Wills
> RW Software
> http://www.rwsoft.ca
>


More information about the Mod_python mailing list