Last updated: Aug-06-2025
OverviewLearn how to upload videos in Python using the Cloudinary Python SDK.
Video tutorialYou can find the code from this tutorial in
GitHub.
Tutorial contentsThis tutorial presents the following topics. Click a timestamp to jump to that part of the video.
Introduction   0:00 In this tutorial, you'll learn how to upload small and large videos to Cloudinary using the Python SDK, a crucial part of your workflow. Upload a small video from your local file system   0:13 This tutorial assumes that you've already installed, imported and configured Cloudinary. If you need help with that, see Configure the Python SDK.To upload, make sure the cloudinary.uploader
library is imported. Use the cloudinary.uploader.upload
endpoint for the upload, pass the full path of the video as the first parameter and specify resource_type
as video
for the second. Print the secure_url
from the response.
Here's an example using a file named videos/short_video.mp4
.
upload
method only supports files up to 100 megabytes. To upload larger videos, use the upload_large
method, which has the same signature and options as upload
. Pass the full path of the video as the first parameter and specify resource_type
as video
for the second. Break the video upload into 6 megabyte chunks.
Here's an example using a file named videos/long_video.mp4
.
Â
Â
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!
âï¸Â  ErrorUnfortunately there's been an error sending your feedback.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4