Open stosef opened 5 hours ago
I guess it has something to do with a breaking change in CakePHP 5 regarding file uploads: https://book.cakephp.org/5/en/appendices/5-0-migration-guide.html#http
The plugin has been compatible with CakePHP 5.x since quite a while. Use one of CakePHP's help forum to figure out your issue.
At first let me thank all authors of this plugin for their work!
I use cakephp-upload in a CakePHP 3 project and it works great.
Now I want to use it with CakePHP 5 and I can't get it to work.
Here is the config for the table:
This is my config/plugins.php:
This is how I use it in my template:
When I try to upload a file I get "Object of class Laminas\Diactoros\UploadedFile could not be converted to string"
Debugger shows that the value that gets written to the DB was not cast to a string. I think it should be a string at this point?
Does anyone have a working example with CakePHP 5? Am I missing some config or code?
Thank you