Ci4 Pass Uploaded Image from Controller to Model |
Hi,
Is it possible to pass an uploaded image file to a model for processing, something like: PHP Code: $file = $this->request->getFile('image');
Yes, it's possible. The model are just a PHP-class like everything else. But you are trying to store it in your database? You should store it as a BLOB, but i don't recommend it. Keep it as a file.
|
Welcome Guest, Not a member yet? Register Sign In |