0

Hi I'm working with cloudinary in my node.js project, and I have search a lot about how to download image/s from cloudinary to my server.

Is there anyone who knows how to do that ?

I didn't find this far a solution someone know how to do that ?

noam aghai
  • 1,364
  • 3
  • 18
  • 30
  • Cloudinary exposes an API: http://cloudinary.com/documentation So you can search images. Once you have the urls, you could download the files using node too: https://stackoverflow.com/a/22907134/3244654 – Ignacio Aug 16 '17 at 12:47

1 Answers1

1

After a successful upload, you'll get Cloudinary's upload response which contains all necessary data to save on your end such as the resource's public_id, version for immediate cache busting. These parameters can be then used for further manipulation.

You also get the resource's url and secure_url (https) ready for delivery.

Maor.G
  • 440
  • 2
  • 5
  • 2
    thanks but i use this. i not want to deliver it and just show it, i want to get the .jpg file to the storage – noam aghai Aug 16 '17 at 13:17
  • 1
    Then save the `url` - it's the image object. If you want to download to your local storage, you can use the `attachment` flag in the URL. For example, http://res.cloudinary.com/demo/image/upload/fl_attachment/sample.jpg – Maor.G Aug 16 '17 at 13:56
  • In general, you don't need to save the url directly. You can generate it using the `public_id` (and `version` which is an optional parameter). – Maor.G Aug 20 '17 at 10:12
  • 2
    I want the image file in the server, not an url – noam aghai Aug 20 '17 at 16:25