upload and rediect working