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 <[email protected]> wrote: > How can I check if there is file in the sent form? > > if request.vars.image: > redirect(URL('structure',args=['it', 'works'])) > > doesn't work > > if request.vars.image.file rises an error, when no file sent

