[web2py] Re: check if file in form

2011-03-02 Thread LightOfMooN
thanks! On 2 мар, 20:56, Massimo Di Pierro wrote: > if isinstance(request.vars.image, cgi.FieldStorage) and > request.vars.image.file: >      redirect(URL('structure',args=['it', 'works'])) > > On Mar 2, 9:23 am, LightOfMooN wrote: > > > > > > > > > How can I check if there is file in the sent f

[web2py] Re: check if file in form

2011-03-02 Thread Massimo Di Pierro
if isinstance(request.vars.image, cgi.FieldStorage) and request.vars.image.file:     redirect(URL('structure',args=['it', 'works'])) On Mar 2, 9:23 am, LightOfMooN wrote: > How can I check if there is file in the sent form? > > if request.vars.image: >     redirect(URL('structure',args=['it', '