Spaces How-Tos

Spaces is an S3-compatible object storage service that lets you store and serve large amounts of data. The free, built-in Spaces CDN minimizes page load times, improves performance, and reduces bandwidth and infrastructure costs.

Getting Started

Create a Space to store and serve large amounts of data. Create multiple Spaces at no additional cost to use as logical units for segmenting content.
Upload files from your local computer to make them available in a Space, download files from a Space to your local computer, and delete files from a Space to stop serving them.
Use folders to organize files in a Space and make them conceptually easier to manage.
Destroy a Space to permanently and irrecoverably destroy the Space and all of the files in it. Your Spaces subscription ends automatically when you destroy your last Space.

Access Control

Change the permissions of files to make them visible to anyone on the internet or only to owners of the Space). Create a quick share link to give time-bound access to a private file.
Set the permissions of a Space's file listing, which is an XML list of the Space's contents, to public (visible to anyone on the internet) or private (visible only to users with access keys to the Space).
Allow people or programs to co-manage Spaces with the owner of the Space using access keys or DigitalOcean Teams.

Content Delivery Network

Enable the free, built-in Spaces content delivery network (CDN) to deliver content faster and more reliably and add an extra layer of redundancy for websites.
Set the Spaces CDN's edge cache TTL or purge the cache to manage when edge servers refresh their content.
Use a secure subdomain you own as an alternative endpoint for the Spaces CDN.

Advanced

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 Space.