![]() |
Get uploaded file data in CI 4 - 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: Get uploaded file data in CI 4 (/showthread.php?tid=74389) |
Get uploaded file data in CI 4 - webdevron - 09-18-2019 In Codeigniter 3, $this->upload->data(); does it. In documentation of CI 4, I found some functions for getting specific uploaded file data like, getName(), getClientName(), getClientMimeType() etc. But how can I get all the uploaded file data at once like CI 3? I am using $file->store(); to upload file. Thanks in advance. RE: Get uploaded file data in CI 4 - InsiteFX - 09-18-2019 All of the parameters are in the $_FILES[] array. PHP Code: $file_name = $_FILES["photo"]["name"]; Where photo would be the input name. RE: Get uploaded file data in CI 4 - webdevron - 07-14-2020 (09-18-2019, 03:50 AM)InsiteFX Wrote: All of the parameters are in the $_FILES[] array. Thank you. But how to do this using CI4? RE: Get uploaded file data in CI 4 - captain-sensible - 07-15-2020 if you have a view which includes a form something like: Code: <?= form_open_multipart('newblog'); ?> Code: then to get info on image that was navigated to used when form was submitted via POST see section starting quater down https://codeigniter4.github.io/CodeIgniter4/libraries/files.html |