Changed upload and removed console.logs