> For the complete documentation index, see [llms.txt](https://docs.riff.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.riff.ai/reference/shared/storage.md). Agents can also search and read this documentation through its [MCP server](https://docs.riff.ai/~gitbook/mcp).

# Storage

Upload and manage the files your app uses, and the size limits for each kind.

Storage holds the files your app works with: documents and data your app reads, and images or files it shows to its users.

Storage is one of the tabs your app opens with. If you've closed it, open it again with **+**.

## Upload files

| Button                         | Use it for                                                                          | Size limit      |
| ------------------------------ | ----------------------------------------------------------------------------------- | --------------- |
| **Upload to internal storage** | Files your app reads, such as PDFs, spreadsheets and CSV files. They aren't public. | 512 MB per file |
| **Upload to public media**     | Images and files your app shows to its users. Anyone with the link can open them.   | 100 MB per file |

Both buttons open an upload box: drag files in, or click to choose them. You can add many files at once. To upload a folder of PDFs, open the folder in the file picker and select all the files.

The box takes PDFs, images, spreadsheets (CSV and Excel), PowerPoint, text, JSON, ZIP, audio and video.

Your app's code reads the files from internal storage. Tell the Riff agent what the files are and what your app should do with them.

**Upload file to riff storage** and **Upload directory to riff storage** put files in Riff storage, which keeps folder structure. The directory button uploads a whole folder at once.

## Find and manage files

The list shows every file with its storage type, size and date. Filter it by name, or by folder with **Filter by prefix**. Click a file to preview or download it.

To remove files, select them and click **Delete selected**. Deleting can't be undone.

## Storage or Database

Use Storage for files, such as PDFs, CSVs, images and documents. Use the [Database](https://docs.riff.ai/reference/app-builder/database.md) for structured data, such as tables and records.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.riff.ai/reference/shared/storage.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
