Hi Kenneth,

I had a similar problem to solve, and finally chose to create a table
imagefile based on:

http://www.web2py.com/book/default/chapter/07?search=upload#SQLFORM-and-Uploads

and a table groupimagefile which links user groups to imagefiles. In
the controller I query
the database for the image, response.image=... and in the view:

{{if response.image:}}
  <div id="banner">
    <img src="{{=response.image}}" alt="banner image" width="984px"
height="168px"/>
  </div> <!-- banner -->
{{pass}}


Kind regards,

Annet

Reply via email to