[mod_python] problem in file download

Manera, Villiam vmanera at manord.com
Thu May 30 16:59:46 EST 2002


I'm trying to download a file:

client side:
ACTION="http://sviluppo.manord.com/cgi-mpy/prova.py/printfile "
ENCTYPE="multipart/form-data" NAME="FormDati">
<INPUT TYPE="file" NAME="file1"></center>
<INPUT TYPE="submit" NAME="invia" VALUE="Invia Dati"></center>


when I sumitted a file mod_python give me this:

Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "C:\Program Files\Python22\Lib\mod_python\apache.py", line 193, in
    result = object(req)

  File "C:\Program Files\Python22\Lib\mod_python\publisher.py", line 104, in
    val = File(field)

  File "C:\Program Files\Python22\Lib\mod_python\publisher.py", line 308, in
    for m in field.file.__methods__:

  File "C:\programmi\Python22\Lib\tempfile.py", line 178, in __getattr__
    a = getattr(file, name)

AttributeError: 'file' object has no attribute '__methods__'

does anyone have any idea to solve this?


More information about the Mod_python mailing list