Create a Spaces bucket to store, organize, and serve unstructured data.
Spaces How-Tos
Generated on 20 Mar 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
Upload, download, and delete files in buckets.
Use folders to organize files in a Space and make them conceptually easier to manage.
Permanently delete a Spaces bucket.
Migrate buckets to and from DigitalOcean Spaces with Flexify.IO.
Transfer data between DigitalOcean Spaces regions using third-party tools such as Rclone.
Access Control
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.
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).
Allow people or programs to co-manage Spaces with the owner of the Spaces bucket using access keys or DigitalOcean Teams.
Content Delivery Network
Enable and disable the Spaces CDN, configure edge cache TTL settings, set up custom subdomains with TLS, and manage CDN endpoints.
Manage the Spaces CDN cache, including setting edge cache TTL values and purging cached files.
Advanced
You can preserve, retrieve, and restore every version of every object stored in your buckets using S3 Versioning.
Configure bucket policies to control access and permissions for Spaces buckets using the Spaces API, AWS CLI, or s3cmd. Use bucket policies to define who can access your bucket and what actions they can perform.
Configure lifecycle rules to automatically manage object storage in your Space using the Spaces API, AWS CLI, or s3cmd. Use lifecycle rules to delete objects after a set period or remove incomplete multipart uploads.
Set file metadata like Content-Type, Cache-Control, Content-Encoding, Content-Disposition, and custom key-value headers.
Configure Cross-Origin Resource Sharing (CORS) to let client web applications loaded in one domain interact with resources in a Spaces bucket.
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.