Welcome Guest, Not a member yet? Register   Sign In
Correct handling of File upload - MVC question
#1

[eluser]jdav3579[/eluser]
Hi,
just a quick question. If the Model handles requests to and from the data store ie. the database and the controller handles requests to and from the user, then would file uploading be handled in the model? In the example in the docs it is written as being in the controller which in my mind would be an equally valid place??

Cheers
John
#2

[eluser]Kenshiro[/eluser]
following the trend thin controllers fat models i would put the logic in the model which makes sense, the actual application resides in the model after all (well the way i see it anyway). Usually my implementations are in the model and it works perfectly... Smile, i usually extend the use of models beyond the vanilla database processing whenever there is processing i put it in the model.




Theme © iAndrew 2016 - Forum software by © MyBB