I have no words.

On 24 Ott, 20:24, mdipierro <mdipie...@cs.depaul.edu> wrote:
> haha, the  <form> tag is missing
>
> <form enctype="multipart/form-data" ....>
>
> On Oct 24, 1:14 pm, leone <handja...@gmail.com> wrote:
>
>
>
> > Dear Massimo, I write a view:
>
> > <form action='' method='post'>
> > <input type='file' name='filepath' >
> > <input type='submit' >
> > </form>
>
> >  and a controller
>
> > def provafile():
> >     if request.vars.filepath:
> >         print "0>>>>>", request.vars.filepath.getvalue('filename')
> >     return dict()
>
> > but error raise: request.vars.filepath is a str object, not
> > FieldStorage
> > Where my error?
>
> > On 24 Ott, 17:24, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > request.vars.pippo would be a cgi.FieldStorage object:
>
> > >http://docs.python.org/library/cgi.html
>
> > > On Oct 24, 10:20 am, leone <handja...@gmail.com> wrote:
>
> > > > I can't understand as web2py renders <input text='file'
> > > > name='pippo'...> in request object.
> > > > request.var.pippo is filename; where is fileobject?
> > > > Somewhere your manual has the answer, but I have no success to find
> > > > it.
> > > > Thanks
>
> > > > PS. I learn very much reading plugin approach
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to