I have the following function:

db.define_table('image',
    Field('company_id',db.company),
    Field('filename',writable=False,readable=False),
 
Field('file',type='upload',default='',notnull=True,autodelete=True),
    migrate=False)


The problem is that crud.update shows a placeholder for the image
instead of a preview of the image.

Safari's inspect element shows the following src attribute:

scr="/cms/default/download/image.file.b4d69...jpg"

Why isn't the image being displayed?


Kind regards,

Annet.

System:
Mac OS X 10.5.8
Python 2.5
Web2py 1.76.5

Reply via email to