Create a Spaces bucket to store, organize, and serve unstructured data.
Spaces How-Tos
Generated on 21 May 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.
Organize files in a Space by creating folders, moving files into them, filtering folder contents, and deleting folders when you no longer need them.
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
Share files from a Spaces bucket by setting file permissions or creating presigned URLs.
Set whether a Spaces bucket’s file listing is public or private.
Control access to Spaces buckets using access keys or DigitalOcean teams.
Advanced
Enable and manage Spaces access logs to record requests made to your bucket and CDN endpoints.
You can preserve, retrieve, and restore every version of every object stored in your buckets using S3 Versioning.
Configure a bucket policy for a Space using the S3-compatible API, AWS CLI, or s3cmd.
Configure lifecycle rules for a Space to expire objects or remove incomplete multipart uploads automatically.
Set standard and custom metadata for files in a Spaces bucket.
Configure CORS on a Space to allow web applications from another origin to access bucket resources.
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.