Use IS_IMAGE(extensions=('jpeg', 'png', 'gif')) to limit to these file
formatsttp://web2py.com/book/default/chapter/07?search=IS_IMAGE On Dec 21, 10:17 pm, Luther Goh Lu Feng <[email protected]> wrote: > Try > > db,define_table('image;, > Field('image, 'upload', notnull=True, requires=[IS_IAMGE()]), > > ) > > On Dec 21, 9:02 pm, pk <[email protected]> wrote: > > > > > > > > > hi, > > > how can i realise this? > > > thanks > > peter

