In general you should never hard code URLs in web2py, but use the URL function to generate them. This provides routing, reverse routing and makes user the links do not break if the app gets moved/renamed.
On Jun 7, 11:34 am, Aaron Crowe <[email protected]> wrote: > Ahhh thank you so much. That solves a major headache for me. > > On Jun 7, 12:29 pm, mdipierro <[email protected]> wrote: > > > this is a no-no. If you see a .. in a path, something is wrong. This > > is how you do it > > > <img width="100px" > > src="{{=URL(request.application,'default','download',args=row.file)}}" / > > > you must have the 'download' action in default.py > > > On Jun 7, 11:26 am, Aaron Crowe <[email protected]> wrote: > > > > I have an image stored in the database as db.comment.file and I'm > > > trying to view it by using its location in application/My_App_Name/ > > > uploads using > > > > <img width="100px" src="../../uploads/{{=row.file}}" /> > > > > When looking at the page source the filename is correct but the image > > > doesn't render. Is my path wrong for a view in My_App_Name/views/ > > > default or am I just missing some basic problem?

