How to upload images from React Native to Spaces

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

Show comments

Submit an answer

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

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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 and use this config

const config = {
  keyPrefix: 'some-path/',
  bucket: 'spaces-name',
  region: 'sgp1', // you can look at spaces endpoint ex.
  accessKey: KEY,
  secretKey: SECRET_KEY,
  successActionStatus: 201,
  awsUrl: '',