I haven’t examined the code path through Discourse, nor do I use Chrome much on my Android device. But I have a personal uploader app I use in Firefox with my Android device, and I don’t have to do anything special in my app for images to show up correctly. I believe the camera app senses the position of the phone and saves them the “right” way. Although it is possible that it is the browser examining the Exif and rotating for me.
Either way, I strongly suspect your image doesn’t have the correct Exif at the time of camera app save.