benjreinhart / react-native-aws3

Pure JavaScript React Native library for uploading to AWS S3
MIT License
398 stars 151 forks source link

Cannot change s3 region #80

Open arediey opened 5 years ago

arediey commented 5 years ago

I have bucket in southeast asia region. when i set region option, it throw out error

const options = { keyPrefix: "react/", bucket: "", region: "ap-southeast-1", accessKey: "", secretKey: "", successActionStatus: 201 }

<xml version="1.0" encoding="UTF-8"?>↵InvalidArgumentthe region 'ap-southeast-1' is wrong; expecting 'us-east-1'

nikfrank commented 5 years ago

I also have this... any updates?

arediey commented 5 years ago

I also have this... any updates?

I did not have time to dig around, i've created new bucket in us-east-1. let me know if you have solution. cheers.

ManigandanRaamanathan commented 5 years ago

Any fix for this issue?

ManigandanRaamanathan commented 5 years ago

I found solution

leleofg commented 5 years ago

Yeah, this still... i'll submit a PR

leleofg commented 5 years ago

@ManigandanRaamanathan what did you do to solve it?

ManigandanRaamanathan commented 5 years ago

@leleofg I manually edited the library's hardcoded endpoint

azai91 commented 4 years ago

Any update on this?