[mod_python] How to find a filename

export at hope.cz export at hope.cz
Sat Jan 20 08:20:39 EST 2007


Thank you for your reply but I do not use publisher.
Is there any other way?
Thank you for help
Lad


> export at hope.cz wrote:
> > I have a form through which users upload a file.
> > 
> > <form method="post" action="test/mptest.py" enctype="multipart/form-data">
> >   <p><input type="file" name="Picture"> </p>
> > </form>
> > </body>
> > 
> > Is it possible to find out the name of a file the user is being uploaded?
> 
> If you are using Publisher, it will be available as:
> 
>   req.form['Picture'].filename
> 




More information about the Mod_python mailing list