PermanentRedirect when calling the PutObject operation
问题 The code below work locally and uploads files from a directory to S3. It's using Boto3 with Python 3. s3 = boto3.resource('s3', aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_ACCESS_KEY_SECRET) bucket = s3.Bucket(bucket_name) uploadFileNames = [] for (sourceDir, dirname, filenames) in os.walk(sourceDir): for filename in filenames: bucket.put_object(Key=filename, Body=open("{}{}".format(sourceDir, filename), "rb")) break My problem is what when I run the same code on my