i just activated my spaces and want to configure my react native to upload images to spaces, but couldnt find any tutorial matches my requirement, can someone guide me towards exact steps how to upload an image or multiple images from react native to DO Spaces … thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This comment has been deleted
AWS provide aws-sdk for react-native but I’m not sure how to use it. May be try this package https://www.npmjs.com/package/react-native-aws3 and use this config
const config = {
keyPrefix: 'some-path/',
bucket: 'spaces-name',
region: 'sgp1', // you can look at spaces endpoint ex. subdomain.sgp1.digitaloceanspaces.com
accessKey: KEY,
secretKey: SECRET_KEY,
successActionStatus: 201,
awsUrl: 'sgp1.digitaloceanspaces.com',
}
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi Everyone,
I tried with the below config but facing an access issue. can someone guide me to the root cause?
Tried generating a new access token and secret key but the issue was not resolved.