Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys

When i check content db at mysql.db, i found that the images has a "/" ie /images/pic.jpg, hence image don't display.

Once i remove the / ie use only image, images return.

How did the extra / came in? when an images in insert there should be not extra /, is it not correct?

Appreciate sharing.

What I have tried:

remove the extra / and the image appear
Posted
Updated 9-Dec-17 4:53am

Look at the code you used for storing the path in the DB - we don't have any access to it.

Either that, or always trim the returned string to remove leading and trailing slashes: API17:JString::trim - Joomla! Documentation[^]
 
Share this answer
 
I found the joomla sp builder use
|URIROOT|/images
.
 
Share this answer
 
Comments
PIEBALDconsult 9-Dec-17 20:02pm    
Please don't answer your own question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900