Uploading Images in Node.js with the Cloudinary Node SDK - Dev Hints

Sdílet
Vložit
  • čas přidán 3. 04. 2023
  • Upload local or remote image files to your Cloudinary account using the Node SDK. Learn how to use the Node SDK Uploader to take one or multiple images and deliver them from a Cloudinary account.
    📝 Cloudinary Docs - Node.js SDK Installation
    cld.media/devhintsnodeuploadi...
    💾 Uploading with the Node.js SDK
    github.com/colbyfayock/cloudi...
    Instructor: Colby Fayock (‪@colbyfayock‬)
    --
    Cloudinary helps developers build performant experiences for the web with powerful optimization and transformation APIs.
    🚀 Get started with a free account!
    cld.media/devhintsnodeuploadi...
    #cloudinary #devhints #images #upload #uploadphoto #webdevelopment
  • Věda a technologie

Komentáře • 10

  • @GoniOsman-pc2me
    @GoniOsman-pc2me Před rokem +2

    Beautiful

  • @MrPindro
    @MrPindro Před 11 měsíci

    Hey, thanks for the tutorials, any chance letting me in on how to set that api to be able to use formData to upload an array images, rather than just hard coding the images the same way it was done in this video?

    • @colbyfayock
      @colbyfayock Před 11 měsíci

      hey! is the idea that you're hoping to receive formdata in a node endpoint and upload the data from that formdata to Cloudinary which would be multiple files?
      from the formdata side, it really depends on your setup, are you in a front end framework for instance like Next.js?
      as far as adding TO the form data, you would want to append multiple files to FormData, which should be able to share the same key such as `file` whre you can use formData.getAll('file') to access that as if it were an array
      from there using the cloudinary API, you would need to loop through that array, uploading one at a time, or you could potentially do concurrent uploads by using something like Promise.all() or a library that would help with that

  • @erickeft
    @erickeft Před 9 měsíci

    What about uploading from remote URLs to my Cloudinary account?? I'm trying to use the NodeSDK and this same uploader.upload() method (following the docs) but I can't finish my upload

    • @colbyfayock
      @colbyfayock Před 9 měsíci

      what error are you seeing? you _should_ be able to pass in a URL to the uploader "as is". if you're still reproducing this, might be worth adding an issue here: github.com/cloudinary/cloudinary_npm

  • @sincethatmoment
    @sincethatmoment Před 2 měsíci

    I love Colby

  • @ahmadg3822
    @ahmadg3822 Před rokem +1

    Unfortunately our services currently are not available in your country "lebanon".
    😪plz do something lol