If the bandana is under your hair, the chance of it to be accepted will increase.
If the bandana is above your head, probably they consider it as a 'Hat'
Well, yeah.
But the rules only applies to no hats or mask that covers entire face will be accepted.
Even if you were to upload a bandana head, it would look really weird when you're wearing an accessory.