thanks!

On 2 мар, 20:56, Massimo Di Pierro <[email protected]> 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 <[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

Reply via email to