I just got the solution on #cakphp channel that because of change in RC3 that was happening. So, for saving the file type fields create form with different name from database field name and in beforeSave assigned that form field value(name or tmp_name) into the database field name.
On Monday, March 9, 2015 at 10:54:34 AM UTC+5:30, Gaurav Kumar wrote:
-- On Monday, March 9, 2015 at 10:54:34 AM UTC+5:30, Gaurav Kumar wrote:
I have created a form in CakePHP-3 and in that there is an input type file field. In previously getting the proper values(name, type, tmp_name, error) of that input field. But now just updated the cakePHP and after doing patchEntity the input field returning just "Array".
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment