---
title: Files
url: https://docs.vultr.com/products/network/cdn-push-zone/management/files
description: A storage service for organizing and managing your files within the Vultr platform.
publish_date: 2024-09-23T20:21:14.315042Z
last_updated: 2026-05-26T20:15:35.116661Z
---

# How to Upload Files to Vultr CDN Push Zones

Uploading Files to Vultr CDN Push Zones enables you to directly transfer and store your content within the CDN infrastructure. Once your files are uploaded, they are distributed and cached across multiple edge servers within the Push Zones. This ensures that your content is delivered quickly and reliably to users from various locations worldwide. By utilizing this feature, you enhance the efficiency and performance of your content delivery, providing a better user experience through reduced load times and consistent availability.

Follow this guide to upload files to Vultr CDN Push Zones on your Vultr account using the Vultr Console, API, or CLI.

=== "Vultr Console"

    1. Navigate to **Products**, click **CDN**, and then click **Push Zones**.
    1. Click your target CDN Push Zone subscription to open its management page.
    1. Click **Files**.
    1. Click **Upload File**.
    1. **Choose** a **File** and provide a **File Name**.
    1. Click **Upload File**.
    1. To delete a file, click on the **Delete File** icon.
    1. Check the **Yes, destroy this file** box in the confirmation prompt, and click **Delete File** to permanently delete the uploaded file.

=== "Vultr API"

    1. Send a `GET` request to the [**List CDN Push Zones** endpoint](https://www.vultr.com/api/#tag/CDNs/operation/list-pushzones) and note the target Push Zone subscription's ID.

        ```console
        $ curl "https://api.vultr.com/v2/cdns/push-zones" \
            -X GET \
            -H "Authorization: Bearer ${VULTR_API_KEY}"
        ```

    1. Send a `POST` request to the [**Create CDN Push Zone File Upload** endpoint](https://www.vultr.com/api/#tag/CDNs/operation/create-pushzone-upload) to generate an upload endpoint for the target CDN Push Zone subscription.

        ```console
        $ curl "https://api.vultr.com/v2/cdns/push-zones/{pushzone-id}/files" \
            -X POST \
            -H "Authorization: Bearer ${VULTR_API_KEY}" \
            -H "Content-Type: application/json" \
            --data '{
                "name": "{filename.ext}",
                "size": {file_size_bytes}
            }'
        ```

    1. Send a `POST` request to the upload endpoint URL returned in the API response. Pass all inputs as form-data fields with the exact same keys and values. Additionally, add a field named `file`, which contains the file to be uploaded. This will successfully upload the file to the target CDN Push Zone subscription.

        ```console
        $ curl "{upload_endpoint_URL}" \
            -X POST \
            -F "acl=public-read" \
            -F "key={CDN_file_path}" \
            -F "X-Amz-Credential={X_Amz_Credential}" \
            -F "X-Amz-Algorithm={X_Amz_Algorithm}" \
            -F "X-Amz-Date={X_Amz_Date}" \
            -F "Policy={policy_string}" \
            -F "X-Amz-Signature={X_Amz_Signature}" \
            -F "file={filename.ext}"
        ```

    1. Send a `GET` request to the [**List CDN Push Zone Files** endpoint](https://www.vultr.com/api/#tag/CDNs/operation/get-pushzone-files) to list all available files in the target Push Zone subscription.

        ```console
        $ curl "https://api.vultr.com/v2/cdns/push-zones/{pushzone-id}/files" \
            -X GET \
            -H "Authorization: Bearer ${VULTR_API_KEY}"
        ```

    1. Send a `DELETE` request to the [**Delete CDN Push Zone File** endpoint](https://www.vultr.com/api/#tag/CDNs/operation/delete-pushzone-file) to delete a file from the target Push Zone subscription.

        ```console
        $ curl "https://api.vultr.com/v2/cdns/push-zones/{pushzone-id}/files/{filename.ext}" \
            -X DELETE \
            -H "Authorization: Bearer ${VULTR_API_KEY}"
        ```

=== "Vultr CLI"

    1. List all available CDN Push Zone subscriptions and note the target Push Zone subscription's ID. 

        ```console
        $ vultr-cli cdn push list
        ```

    1. Create a CDN Push Zone upload endpoint.

        ```console
        $ vultr-cli cdn push create-endpoint <pushzone-id> --name "<filename.ext>" --size <file_size_bytes>
        ```

        > [!NOTE]
        > The Vultr CLI supports creating a CDN Push Zone upload endpoint. To complete the upload, use the details from the response to push the file to the target Push Zone subscription via an HTTP client like `cURL` or another appropriate method.

    1. List all available files in the target Push Zone subscription.

        ```console
        $ vultr-cli cdn push list-files <pushzone-id>
        ```

    1. Delete a file from the target Push Zone subscription.

        ```console
        $ vultr-cli cdn push delete-file <pushzone-id> <filename.ext>
        ```