Hi All,

       I am trying to upload images for "company" table as below:

*models/db.py*

db.define_table('company',
                         Field('name', 'text', notnull=True),
                         Field('abbrev', 'string', length=32),
                         Field('logo', 'upload', uploadfield=True,
                                  requires=IS_IMAGE(extensions=('png', 
',jpg', 'tiff', 'gif')),
                         Field('timezone', 'string',
                                  requires=IS_IN_SET(all_timezones)),
                         Field('url', 'string',
                                  requires=IS_URL()),
                         format='%(name)s')

I got an error as *"Invalid image" *Whenever I tried to upload *tiff 
images.*

How can I upload tiff images?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to