CodeIgniter Forums
upload image profile to writable or public - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: upload image profile to writable or public (/showthread.php?tid=80433)



upload image profile to writable or public - Halim - 10-29-2021

where is need to upload the users profile pictures? should I upload them to writable/uploads  or should upload then to public folder,

I tried to upload them to writable/uploads/users/ : 

http://localhost:8080/writable/users/1/photos/profile/1635531416.png

but I cant access to the image

Thanks


RE: upload image profile to writable or public - ikesela - 10-29-2021

better put in public folder, the upload folder must have full access permission (on localhost). on live server, just need to change owner (CHOWN) to WWW-DATA.
writable folder cannot access directly on url since its outside the public folder ( just for read )