According to the code comments: "Supported file formats: BMP, GIF, JPEG, PNG." Take a look at the code here: https://github.com/web2py/web2py/blob/7c8d91d4c57bd68c2b70f877eaa8da2b6a99b23b/gluon/validators.py#L3140

________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/

On Tue, 02-12-2014 2:42 PM, Prasad Muley wrote:
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 <mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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