Take the picture with your camera oriented 90 degrees from the way you normally take the picture . If the pictures are found to be upside down, turn 90 degrees other way.
It doesn't matter how I take it on my phone. My phone auto adjusts it. My phone was over 400$ it does everything for me but post pictures correctly on here lol