File controller and model