Last updated: Sep-12-2024
On this page:
Overview
Learn how to upload assets in Node.js using the Cloudinary Node.js SDK.
Video tutorial
View the code
You can find the code from this tutorial in GitHub.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
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
0:57 | Alternatively, you can use the async await syntax. For example: |
Upload multiple images
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
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
- Learn more about uploading images and videos using the Node.js SDK.
- Take a look at our Upload guide to learn about uploading to Cloudinary in general.
- Use the Upload API reference to find all the options and parameters available for the SDK.
- Watch more Dev Hints videos on the Cloudinary YouTube channel.
If you like this, you might also like...
Configure the Node.js SDK
Install and configure the Cloudinary Node.js SDKUpload Videos in Node.js
Upload videos to Cloudinary using the Node.js SDKUpload Widget
Embed an Upload Widget in your site
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.
✖️