Upload videos in Node.js (video tutorial)
Last updated: Sep-02-2024
On this page:
Overview
Learn how to upload videos 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.
Install and configure the Node.js SDK
You need to install and configure the Cloudinary Node.js SDK with your product environment credentials. |
Upload a video using the Node.js SDK
Upload a video from a local folder using the upload method of the Upload API. Use the await keyword to get the result and print the delivery URL of the uploaded video. |
Run the script from the terminal
Run the script from the terminal and then paste the URL in a browser to see the video. |
Use the upload large method for big videos
Use the upload_large method to upload big videos using chunks. The method does not return a promise, but you can wrap the code with your own promise and await the response. |
Run the script again from the terminal
Run the script from the terminal to upload the big video (the script takes a bit longer to run), and then paste the URL in a browser to see the video. |
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.
- 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 Images in Node.js
Upload images 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.
✖️