Your camera is storing the photo sideways and then your software is displaying it to you properly (making it merely appear that it's oriented correctly). But then when you upload it to ATP it's going back to the way the camera originally recorded it.