# Storage

Create public or private buckets, upload files and folders, set file size limits and copy file links.

Storage keeps the files your app serves: images, videos, documents and more. Open **Settings > Lyna Cloud > Storage**. It needs a project database: see [Set up a database](/features/cloud/overview#set-up-a-database).

The Storage page with a list of buckets, their visibility and creation date, and the New bucket button.

## What you can do

- Create buckets, each with its own access rule and file size limit.
- Upload files by drag and drop, and create folders.
- Open, download, copy the link of and delete files.
- Edit or delete buckets.

## Create a bucket

1. ### Choose New bucket

   Choose **New bucket**, then enter a **Bucket name**: 3 to 63 characters, lowercase letters, numbers and hyphens.
2. ### Choose who can read it

   Turn on **Make this bucket public** to serve files to anyone with the URL. Leave it off for a private bucket: then a file needs a signed URL.
3. ### Create it

   Choose **Create bucket**. You cannot rename a bucket later.

## Upload files

Open a bucket and choose **Upload**. Drop files or click to pick them, then choose **Upload**. Any file type works, unless the bucket accepts only some types, and each file must fit the bucket's file size limit. Use **New folder** to organize files.

Each file goes up with a one-time signed link made for that file only: your browser never receives the database's key. An upload never replaces a file: if the folder already holds a file with that name, delete it first. When the database storage is full, or a file is over its bucket's limit, the upload list says so next to the file.

Each file shows its size, type and upload date. Its menu offers **Open**, **Download**, **Copy URL** and delete. Select several files to delete them together. In a private bucket, a copied link works for one hour, and **Open** shows pictures, sounds and videos in a new tab while other files download.

## Edit a bucket

Choose **Edit bucket** to change **Public bucket** and the **File size limit** in MB. On a Lyna-managed database, uploads have a maximum size that the dialog shows.

> [!WARNING]
>
> **Delete bucket** removes the bucket and every file in it. You type the bucket name to confirm. This cannot be undone.

## Use files in your app

- **Public bucket**: copy a file's URL and use it in an `<img>` tag or ask the AI to use it.
- **Private bucket**: your app asks for a signed link for a signed-in user. Ask the AI, for example: "Let signed-in users upload an avatar to a private avatars bucket and show it on their profile."

Small images that ship with your app can also live in the project itself. See [Using images](/tips-and-tricks/using-images).

## Related

- [Users and auth](/features/cloud/users-and-auth): Tie files to signed-in users.
- [API](/features/cloud/api): Try the storage endpoints.
- [Edge functions](/features/cloud/edge-functions): Process uploads on the server.
