Spaces How-Tos

Generated on 30 Apr 2026

Spaces Object Storage is an S3-compatible service for storing and serving large amounts of data. The built-in Spaces CDN minimizes page load times, improves performance, and reduces bandwidth and infrastructure costs.

Getting Started

How to Create a Spaces Bucket

Create a Spaces bucket to store, organize, and serve unstructured data.

How to Manage Bucket Files

Upload, download, and delete files in buckets.

How to Organize Files with Folders

Organize files in a Space by creating folders, moving files into them, filtering folder contents, and deleting folders when you no longer need them.

How to Destroy Spaces

Permanently delete a Spaces bucket.

How to Migrate Spaces with Flexify.IO

Migrate buckets to and from DigitalOcean Spaces with Flexify.IO.

Transfer DigitalOcean Spaces Buckets Between Regions Using Rclone

Transfer data between DigitalOcean Spaces regions using third-party tools such as Rclone.

Access Control

How to Share Links to Files with File Permissions and Presigned URLs

Choose how you share files by setting the file permissions to public (visible to the internet) or private (visible to owners of the bucket). Use presigned URLs to give time-bound access to private files.

How to Set File Listing Permissions for Spaces

Set the permissions of a Spaces bucket’s file listing, which is an XML list of the bucket’s contents, to public (visible to anyone on the internet) or private (visible only to users with access keys to the bucket).

How to Manage Access to Spaces

Control access to Spaces buckets using access keys or DigitalOcean teams.

Advanced

How to Configure Spaces Access Logs

Enable and manage Spaces access logs to record requests made to your bucket and CDN endpoints.

How to Enable Spaces Versioning

You can preserve, retrieve, and restore every version of every object stored in your buckets using S3 Versioning.

How to Configure Bucket Policies Using Automation

Configure a bucket policy for a Space using the S3-compatible API, AWS CLI, or s3cmd.

How to Configure Lifecycle Rules

Configure lifecycle rules for a Space to expire objects or remove incomplete multipart uploads automatically.

How to Set File Metadata

Set file metadata like Content-Type, Cache-Control, Content-Encoding, Content-Disposition, and custom key-value headers.

How to Configure CORS on DigitalOcean Spaces

Configure CORS on a Space to allow web applications from another origin to access bucket resources.

How to Use DigitalOcean Spaces with AWS S3 SDKs

The Spaces API is interoperable with the AWS S3 API, meaning you can use existing S3 tools and libraries with it. These examples demonstrate how to perform common Spaces operations in JavaScript, Go, PHP, Python 3, and Ruby.

Content Delivery Network

How to Enable the Spaces CDN

Enable and disable the Spaces CDN, configure edge cache TTL settings, set up custom subdomains with TLS, and manage CDN endpoints.

How to Manage the Spaces CDN Cache

Manage the Spaces CDN cache, including setting edge cache TTL values and purging cached files.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.