Image to public or writable folder |
All,
The documentation gives a example and that is the standard that file/images will stored in de writable folder for example the uploads folder. But reading here in the forum they say store it in the public folder. Why in the public folder and not in the standard folder named writable? The writable folder is save for the outside world and the public folder is accessible for everyone in my opinion. Andre
I will advise you to save to public folder because image need to be publicity accessable.
The documentation gives a example and that is the standard that file/images will stored in de writable folder for example the uploads folder.
But reading here in the forum they say store it in the public folder.
Yea we all aware of that because if u try to upload the image to writable folder and try to access it the system will return a relative path to the image instead of norm image url we all use with. Use FCPATH.'path/to/director ' do not use WRITABLE.'path/to/directly '.
Anyway your choice. (03-12-2022, 11:41 AM)seunex Wrote: Yea we all aware of that because if u try to upload the image to writable folder and try to access it the system will return a relative path to the image instead of norm image url we all use with. Use FCPATH.'path/to/director ' do not use WRITABLE.'path/to/directly '. I use an method to show the image from the writable folder. PHP Code: public function image($image=null) |
Welcome Guest, Not a member yet? Register Sign In |