Error uploading to a non-US Standard AWS S3 Bucket in Django application; US Standard bucket works perfectly

后端 未结 3 477
天命终不由人
天命终不由人 2021-01-15 14:48

I set up an S3 bucket in a non-US region (Singapore). When I try to upload images to it, I get a 301 (Permanently moved) error from S3. Res

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-15 15:20

    "Singapore" is not a valid "region" in the sense that you need, here:

    AWS_S3_REGION = 'ap-southeast-1'
    

    http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

    This may not be the only issue, but it should be one of the issues, at least.

提交回复
热议问题