Moved file upload functions to CoreController and changed paths for save