The pictures rotate because when you take a picture with many cell phones and some digital cameras, the orientation doesn't change regardless of the position of the phone or camera. Its orientation is saved as metadata instead of actually rotating the picture. Some apps pay attention to the metadata, but most apps don't (especially web browsers.) You'll want to open them and save them first, then upload them. They should show up correctly.