upload swift not for optional type