iPhone Orientation Issue

Images taken by iphone always show wrong orientation after upload to server. This is why. Fuck!

Reference:

iphone_orientation

exif example: (taken by iphone 5)