If you send the file drirectly to your server without going through any software that understand the Auto Rotate command, They will be sideways.
Windows does not undertand auto rotate, So either you would have to get your files using Canon Zoom Browser or Photoshop/Bridge and then upload them to your server
Or if you use windows you would have to manually rotate them