upload and routes