Yeah. It's a combination of certain phones/cameras embedding the "orientation info" in different ways, and that the code I wrote for handling/processing the uploads doesn't take into account the way that they are doing it. I have not had a chance to sit down and rework that code (I really need to get to that).
One workaround is to take the image in your phone (it's usually phone pics that do this), edit it within the phone, rotate it sideways (doesn't matter which way), save that, then edit it again, rotate again until straight, then save again. What I've found is that when edited and re-saving the orientation, it does it in the way that the code on the website expects. I don't know why the original picture doesn't.