There’s a glitch that happens sometimes when uploading photos to lemmy (and other sites) where the photo orientation is messed up. It’s actually an issue with the photo itself. You can fix it by cropping even just a sliver out of the photo. Then the orientation will be correct when you upload.