Fixed file uploading to S3 from remote https.