[mod_python] How to find a filename

export at hope.cz export at hope.cz
Sat Jan 20 07:40:27 EST 2007


Thank you for your reply but it does NOT work.
When I tried it I received an error:

AttributeError: 'mp_request' object has no attribute 'form' 

Is there  another way?
Thank you for help
Lad.



> 
> I think this works:
> 
> fileitem = req.form.get('Picture', None)
> if fileitem:
>     picture_name = fileitem.filename
> 
> Regards,
> -- 
> Clodoaldo Pinto Neto




More information about the Mod_python mailing list