Refactored file upload route
Made some changes to where files are uploaded