Moved model lines to controller

Moved the file upload and stuff from the model to the controller….still
does not create obj.