The model's save method must not return an ID, it must be return a boolean. If the method had a return type, this would result in an error. The model should also not be reading request data. What you could do instead is merge the file data with form data and pass it to the model.
Statistics: Posted by SharkyKZ — Sun Nov 03, 2024 8:34 am