CodeIgniter Forums
Images uploaded from forms are not shown - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Images uploaded from forms are not shown (/showthread.php?tid=76347)



Images uploaded from forms are not shown - Marcolino92 - 05-05-2020

I have an anomalous problem, I correctly upload the image in the writable / uploads / photos folder, they have all the active permissions, they upload it correctly, but unfortunately when it is displayed it is not shown for lack of permissions. This both on the web and locally with XAMPP.

I repeat, the permissions are all there, he loads it quietly.
I did a test by uploading a test image to the root and reaching it at the address is displayed.


RE: Images uploaded from forms are not shown - jreklund - 05-05-2020

If you have installed your server correctly. "writable" folder are not a publicly accessed folder (from the url), as it should not be so. That's for uploading secret stuff. If you need to have something public (like uploading a new logo), that file needs to be inside your "public" folder.

Or you need to write your own PHP-reader that finds files in the "writable" folder and can display them to the public.