assign content of uploaded file to model properties

Hi,

I’m beginner.

I have a function, now in controller, what assigns the content of an uploaded file to model properties.

I have read that we should try to have fat models and thin controllers, but this way my controller is much more fat than the model. is it the right place in the controller to handle this functionality, or would you put it rather in the model (if anyway possible), or else?

thanks!

BR

c