Move file upload logic from service to controller, since some post upload logics have to be handled.