It's a New York thing to refer to the rural Northern and Western parts of New York State that are not New York City. No one (or at least very very few) outside of New York State uses it to refer to any other place.
In my experience people in the Northeast US pretty much never refer to New York City as just 'New York'. New York will mean the state, they will say 'the city' or 'NYC' to differentiate from the state. Or they will say upstate to mean the rest of the state outside of NYC metro area.
You're being downvoted because your question makes no sense. Both NYC and New York State are mentioned, so what are you even asking for clarification on?