> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.zata.prathamchopde.site/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.zata.prathamchopde.site/_mcp/server.

# Make files public

A public file has a permanent link that anyone can open without signing in, for example to embed an image on a website. You can make one file public, or the whole bucket.

| You want to                  | Use                      | Where                                       |
| ---------------------------- | ------------------------ | ------------------------------------------- |
| Share one file               | **Make public**          | the file's **⋮** menu                       |
| Share every file in a bucket | **Public Access** switch | **Bucket Settings** → **Security & Access** |

For a link that stops working after a while, [share a temporary link](/buckets/share-a-file) instead.

> **Warning**
>
> Anyone with a public link can view and download the file, and the link does not expire. Downloads by anyone count towards your [egress](/account/ingress-and-egress). Check that nothing personal or sensitive becomes public.

## Make one file public

The other files in the bucket stay private.

#### Open the file's menu

In the Zata console, open the bucket. Open the **⋮** menu in the file's row and select **Make public**.

#### Confirm

The window **Make this file public?** explains what happens. Select **Make public**.

#### Copy the link

Open the file's **⋮** menu again and select **Copy public link**. A globe icon next to the file name marks it as public.

If the bucket has a [bucket policy](/access/bucket-policies) that blocks public access, making the file public has no effect until that policy is changed. The console warns you about this in the confirmation window.

To make the file private again, open its **⋮** menu, select **Make private** and confirm with **Make private**. The link stops working at once: anyone who saved it gets an access-denied error.

## Make the whole bucket public

Anyone on the internet can then list all the bucket's files and download any of them.

#### Open the bucket's settings

Go to **Buckets** and select the gear icon (**Bucket Settings**) in the bucket's row.

#### Turn on Public Access

Open **Security & Access** and turn on **Public Access**.

#### Confirm

Read the warning and select **Yes, Make Public**.

#### Copy the public URL

The **Public URL** box shows the bucket's address. Add a file's name at the end to open that file. See [The public link](#the-public-link).

![Security and Access with Public Access turned on, the public warning and the Public URL box](/_fern-img/5dedae6189f101a276662a78fabc03895c904477bfb7005d9ae8d53c05e86133.webp)

To make the bucket private again, turn **Public Access** off. Public links to its files then stop working.

## The public link

A public link ends with the file's full name (its key):

```text
https://idr01.zata.ai/my-bucket/myfile.txt
```

For a bucket in Mumbai, the link starts with `https://bom01.zata.ai`. The form `https://my-bucket.idr01.zata.ai/myfile.txt` works too. Public links stop working if your account is suspended.

> **Note**
>
> Sub-users can copy the public link of a file that is already public, but cannot make files or buckets public or private. More on file permissions: [Object ACL](/access/object-acl).