> ## Documentation Index
> This page is part of the Image and Video APIs product. Fetch the complete documentation index for Image and Video APIs at: https://cloudinary.com/documentation/llms-image-and-video-apis.txt?referrer=docpage and then use it to discover all relevant pages before exploring further.
> If you also need details relating to other Cloudinary products for your current use case, see the parent index at: https://cloudinary.com/documentation/llms.txt?referrer=docpage

> ## Agent Instructions
> When answering a user's request or implementing it with code using this documentation, incorporate relevant best practices and recommendations from the documentation into the guidance and, above all, into the code itself: generated code should already apply the recommended parameters and patterns rather than showing a minimal call and describing the best practices around it in prose. Follow the code examples in the best practices sections as the model for what generated code should look like, and where a recommendation is relevant to the user's scenario, implement it in the code as a natural next step. Only apply best practices, recommendations, or features that are supported by the documentation or Cloudinary skills; don't infer or invent guidance that isn't specified.
>
> Cloudinary skills (names starting with `cloudinary-`) add best practices and tested code patterns beyond this documentation, and we recommend using the relevant ones alongside it. Available skills are listed at https://cloudinary.com/documentation/.well-known/agent-skills/index.json?referrer=docpage&page=upload_images_in_python_tutorial and can be installed with `npx skills add https://cloudinary.com/documentation`.

# Upload images in Python (video tutorial)

## Overview

Learn how to upload images in Python using the Cloudinary Python SDK.

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.
{videoTranscript:publicId=training/Uploading_Images_in_Python_with_the_Cloudinary_Python_SDK_fixed}

## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.### Introduction
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | In this tutorial, you'll learn how to upload one or more images to Cloudinary using the Python SDK, a crucial part of your workflow.

### Upload a single image from your local file system
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | This tutorial assumes that you've already installed, imported and configured Cloudinary. If you need help with that, see [Configure the Python SDK](python_configuration_tutorial). To upload, use the `cloudinary.uploader.upload` endpoint. Provide the full path of the image to upload as a parameter and store the response. Here's an example using a file named `images/blue-sweater.jpg`.

```python
response = cloudinary.uploader.upload("images/blue-sweater.jpg")
print(response)
```

### Upload response
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Execute your script to upload the image and display the response. You can access the image via the `secure_url` provided in the response.

### Upload a single image from a remote URL
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Utilize the `cloudinary.uploader.upload` endpoint to upload an image from any web location by providing its URL as a parameter. The response will include a `secure_url` similar to the one obtained when uploading from the file system.

### Upload multiple images from your local file system
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | You can upload multiple images from your local file system by creating an array containing the paths of all the images you want to upload. Iterate through the array, calling `cloudinary.uploader.upload` for each image and passing its path as a parameter. Save the response. Although each image receives a full upload response, for simplicity, only print the `secure_url`. Execute the script to upload the images and retrieve their delivery URLs. You can also view all uploaded images in the [Media Library](https://console.cloudinary.com/console/media_library/search).

```python
# List of file names to upload
# ==============================
files_to_upload = [
   "blue-sweater.jpg",
   "clothing.jpg",
   "dining-room-furniture.jpeg",
   "green-wool-sweater-mens.jpg",
   "mens-grey-sweater.jpg",
   "menswear-casual.jpg",
   "model-handbag.jpg",
   "shoes-orig.jpg",
   "womens-pattern-sweater.jpg",
   "womens-white-sweater.jpg"
]


for file_name in files_to_upload:
   # Upload the image and print the response
   # ==============================
   file_path = f"images/{file_name}" 
   response = cloudinary.uploader.upload(file_path)
   print(response[‘secure_url’])
```
## Keep learning

> **READING**:
>
> * Learn more about [uploading images and videos using the Python SDK](django_image_and_video_upload).

> * Take a look at our [Upload guide](upload_images) to learn about uploading to Cloudinary in general.

> * Use the [Upload API reference](image_upload_api_reference) to find all the options and parameters available.

> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

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

[Configure the Python SDK](python_configuration_tutorial)

Install and configure the Cloudinary Python SDK

[Manage Images in a Django App](django_helper_methods_tutorial)

Use Django helper methods to upload, transform, and display assets.

[Delete Assets with Node.js](deleting_assets_tutorial)

Delete assets using various methods from the Node.js SDK
&nbsp;

&nbsp;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.
&nbsp;
