fixing the routes to only allow uploads when not uploading in migration