The problem has been perfectly solved. Convert the file object returned by the controller into an array and assign the specified field to the form $data. I have been troubled for many days and solved it in an instant, haha!
replyThere is no problem with encapsulation. Image upload and thumbnail creation are successful. There is no problem with field specification. However, the two fields returned become an array. When added to the form data, it becomes a nested array. All other data are Okay, I just don’t know how to handle these two image paths before they can be saved into the database?
The problem has been perfectly solved. Convert the file object returned by the controller into an array and assign the specified field to the form $data. I have been troubled for many days and solved it in an instant, haha!
Isn’t this under your own control? How did you encapsulate it? Just specify the fields when encapsulating