Welcome Guest, Not a member yet? Register   Sign In
Security and File Upload in CodeIgniter: Best Practices to Keep Images Out of the Pub
#3

(This post was last modified: 08-02-2023, 05:23 AM by tarcisiodev1.)

(08-02-2023, 04:15 AM)luckmoshy Wrote: do 
PHP Code:
$filepath WRITEPATH 'uploads/' $img->store(); 

But if I display this link to the image/file in the view, will it be accessible even though it is not in the public folder, or do I need to make any other configuration? Is there a specific route or controller method I should set up to handle file requests securely and serve them with the necessary headers?

(08-02-2023, 04:15 AM)luckmoshy Wrote: do 
PHP Code:
$filepath WRITEPATH 'uploads/' $img->store(); 

What method should I use to access files with non-public access levels and render them in the view without being in the public folder?
Reply


Messages In This Thread
RE: Security and File Upload in CodeIgniter: Best Practices to Keep Images Out of the Pub - by tarcisiodev1 - 08-02-2023, 04:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB