it seems that you are getting the image as object and trying to save it in the database as string, use debug in the controller to check what $image holds.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
I am using Cakephp4 File Uploads but i will give me "Object of class Laminas\Diactoros\UploadedFile could not be converted to string [CORE/src/Database/Type/StringType.php, line 97]" | 4 | 3956 | November 23, 2020 | |
Save hasMany Images causes Object of class Laminas\Diactoros\UploadedFile could not be converted to string Error | 2 | 406 | August 23, 2022 | |
Object of class Laminas\Diactoros\UploadedFile could not be converted to string | 23 | 4915 | May 3, 2021 | |
Uploading Two pictures in one Form Cake PHP VERSION (4.x) | 8 | 1191 | October 27, 2020 | |
Any Cakephp 3 Image Uploading tutorial Online? | 5 | 9333 | December 2, 2016 |