Working with uploaded files - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Working with uploaded files (/showthread.php?tid=82170) |
Working with uploaded files - Kordianz - 06-20-2022 Hi, I work on CRM system for my friend, and I'm stoped by this theoretically think. For test, I create upload form (frome some tutorial): Code: public function upload() Code: <ul> they must works for logged in users only, and i try how to grant acces to this files. For download or show (when it is picture). Can someone helps? thanks RE: Working with uploaded files - Kordianz - 06-24-2022 OK, after search I find reponse class and service $response = service('response'); return $response->download($file,null); |