Question

Access denied while uploading file to spaces using react-native?

Hi Everyone,

I tried with the below config but facing an access issue. can someone guide me to the root cause?

<Code>AccessDenied</Code><Message>Policy check failed, variable not met condition: bucket</Message><BucketName>s3-sfo3</BucketName>

{
                keyPrefix: 'store_videos/',
                bucket: 'store',
                region: 'sfo3', 
                accessKey: KEY,
                secretKey: SECRET_KEY,  
                successActionStatus: 201,
                awsUrl: 'sfo3.digitaloceanspaces.com',`
}

Tried generating a new access token and secret key but the issue was not resolved.

**Libraries used: **

react-native-upload-aws-s3

react-native-image-picker


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer