Support S3 upload and https download.