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
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!
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',
}
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.