Here is My Model

db.define_table('img', timestamp,
    Field('caption','string', length=1000,
requires=[IS_LENGTH(1000)]),
    Field('upload', 'upload', requires=[IS_LENGTH(200000)],
          uploadfolder=os.path.join(request.folder,
'uploads','images','general'))
)

To Display I've tried:

<img src="{{=URL('download', args=img['upload']}}">
<img src="{{=URL('default', 'download',args=img['upload']}}">
<img src="{{=URL('default', 'download', 'images/
general',args=img['upload']}}">

But they all give me the same error:

Reply via email to