# S3 compatible endpoints (DigitalOcean spaces)

## Configuration

### Connecting the DigitalOcean spaces data source

UI Bakery supports S3-compatible object storage APIs, for example, [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/).&#x20;

You can connect it following the same flow as with the AWS S3 data source. Let's recap the steps:

1. On the **Data sources** page, click **Connect**, and select *AWS S3* in the Data sources list.
2. Enter the data source name and specify the **Access key ID** and **Secret access key ID.**
3. Select the **Use custom endpoint** checkbox and specify the base URL.
4. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="/files/XRyk7Mkj7Qxd21trkXgu" alt=""><figcaption></figcaption></figure>

## Usage

### Using the S3 file uploader component with DigitalOcean Spaces

Using the [S3 file uploader](/reference/working-with-components/aws-s3-uploader.md) component implies direct upload to the bucket. If you're planning to use it in UI Bakery, you need to set up *CORS settings* in your DigitalOcean bucket settings.&#x20;

In the settings, use `https://cloudworkbench.uibakery.io` for the **Origin** field - on cloud. For the self-hosted version, change `https://cloudworkbench.uibakery.io` to the domain from which you access your UI Bakery instance.

<figure><img src="/files/XeO4i3rZRCmFymbnCZT4" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uibakery.io/reference/data-sources/amazon-s3/s3-compatible-endpoints-digitaloceans-spaces.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
