Question

How to save a image from Node to DigitalOcean spaces?

Posted November 28, 2021 155 views
Node.jsDigitalOcean Spaces

How cani save a image from Node to DigitalOcean spaces and getting spaces image url as response and storing that url in mongodb

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.

×
Submit an Answer
1 answer

Hi there,

Here is a link to a step by step tutorial on how to upload files to the DigitalOcean Spaces with Node.js:

https://www.digitalocean.com/community/tutorials/how-to-upload-a-file-to-object-storage-with-node-js

I could suggest following the steps listed there as it is quite detailed.

Let me know if you have any questions.
Regards,
Bobby

by Tania Rascia
Create a Node.js app to upload a file to your DigitalOcean Space
  • hi booby thanks for replying the link you’ve said me to go through is super amazing i just want to know after uploading image to spaces how can i get image url in response to that post request so that i can save the url to my backend