Upload assets in Node.js (video tutorial)

Last updated: May-22-2023

Overview

Learn how to upload assets in Node.js using the Cloudinary Node.js SDK.

Video tutorial


Tutorial contents

This tutorial presents the following topics. Click a timestamp to jump to that part of the video.

Upload one image using the Node.js SDK

Jump to this spot in the video  0:15 Having installed and configured the Cloudinary Node.js SDK, you can upload an image using the upload method of the Upload API. For example:

Use the async await syntax

Jump to this spot in the video  0:57 Alternatively, you can use the async await syntax. For example:

Upload multiple images

Jump to this spot in the video  1:33 If you want to upload multiple images you can loop through an array, calling the same function. For example:

Upload using an image URL

Jump to this spot in the video  2:06 So far we've been using local file paths, but you can use many different file sources for your images, for example an image URL:

Keep learning

Related topics

If you like this, you might also like...

Configure the Node.js SDK
Install and configure the Cloudinary Node.js SDK
Generate Upload Signature
Generate a timestamp and signature for a signed upload
Upload Widget
Embed an Upload Widget in your site

 

Cloudinary Academy

 

Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.

 

✔️ Feedback sent!

Rate this page: