Get uploaded file data in CI 4 |
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.
All of the parameters are in the $_FILES[] array.
PHP Code: $file_name = $_FILES["photo"]["name"]; Where photo would be the input name. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(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?
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/CodeIgnit...files.html |
Welcome Guest, Not a member yet? Register Sign In |