Welcome Guest, Not a member yet? Register   Sign In
Image not showing in codeigniter 4
#7

(11-06-2019, 09:54 PM)durairaj Wrote:
(11-06-2019, 06:40 PM)John_Betong Wrote: I would hard a guess and think the image is being called from the public folder... If so and you really want to use the WRITEPATH folder then try using s relative path which should be converted to an URL:

<img src="../writable/uploads/avatar/avatar_1.jpg">

I will try it to make sure it works when I am back on the desktop.

As mentioned far better to group all callable  files into a common folder:

/public_html/assets/
css/
img/
js/
svg/

This is not working..

It sort of works for me because I store an SVG image in the writable folder and echo the SVG file contents.

The IMG requires a valid URL and WRITEPATH is above the root and not accessible.

Use "Plan B" - store all images in /public_html/assets/imgs/ folder.
Reply


Messages In This Thread
Image not showing in codeigniter 4 - by durairaj - 11-06-2019, 12:19 AM
RE: Image not showing in codeigniter 4 - by John_Betong - 11-06-2019, 10:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB