Use IS_IMAGE(extensions=('jpeg', 'png', 'gif')) to limit to these file
formats

ttp://web2py.com/book/default/chapter/07?search=IS_IMAGE

On Dec 21, 10:17 pm, Luther Goh Lu Feng <elf...@yahoo.com> wrote:
> Try
>
> db,define_table('image;,
>     Field('image, 'upload', notnull=True, requires=[IS_IAMGE()]),
>
> )
>
> On Dec 21, 9:02 pm, pk <peter.kirch...@youngdesigners.de> wrote:
>
>
>
>
>
>
>
> > hi,
>
> > how can i realise this?
>
> > thanks
> > peter

Reply via email to