Completely refactor upload routes.