do you have an action called upload? should it be called download? I may need to see a longer portion of the view.
Massimo On Jan 18, 9:16 am, annet <[email protected]> wrote: > I am facing a problem similar to the one presented in the follwing > post: > > http://groups.google.com/group/web2py/browse_thread/thread/dbde3f153f... > > So far, I haven't been able to construct a solution from the entries > in this thread, I hope one of you will help me do so. > > I have a view with a number of <div></div> elements, basically I want > to give users the option of setting a background image to these <div></ > div> elements. Therefore, these <div></div> elements all have a > different id, which is stored in a database table. > > In the view I construct a stylesheet which, amongst others, contains > the following lines of code: > > {{for record in records: }} #{{=record.tag}} { background-image: url > ('../uploads/{{=record.image}}') ; > {{pass}} > > This doesn't work. However, when I move the images to the images > folder in the static folder the following lines of code do work: > > {{for record in records: }} #{{=record.tag}} { background-image: url > ('../static/images/{{=record.image}}') ; > {{pass}} > > Since I don't want to bypass the uploads functionality in web2py, I am > looking for a solution as described in the thread above. > > Best regards, > > Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

