> ## Documentation Index
> Fetch the complete documentation index at: https://magic-book.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Storage

> Where MagicBook keeps uploads, pictures, narration and generated files, and how to store media on a cloud bucket.

MagicBook keeps three kinds of files: uploads from customers (images, logos and the media library), generated files (pictures, narration and PDFs), and the application's own working files in `storage/`.

## Where files go

* **Local server**: the default. Files are kept on the same machine as MagicBook, in the `public/` and `storage/` folders. Back these folders up.
* **Cloud storage**: appears on **Platform → General Settings** once you install a storage plugin, such as Amazon S3, Wasabi, Cloudflare R2 or Google Cloud Storage. Choose it under **Default Storage**.

New uploads use the storage you choose. Files that were already uploaded stay where they are.

## Upload limits

**Upload limits** on [General settings](https://magic-book.mintlify.site/admin/general-settings.md) sets the largest image a customer may upload. Video uploads are off by default. The server's own PHP upload limits also apply, so raise `upload_max_filesize` and `post_max_size` in PHP if large images fail.

## Folders the server must write to

The web server user must be able to write to:

* `storage/`, including `storage/logs` and the framework cache folders
* `bootstrap/cache/`
* `public/uploads/` and `public/media/`
* `lang/`, for translations

The installer's Permissions page checks these folders. See [Web installer](https://magic-book.mintlify.site/installation/web-installer.md).

## Backups

Back up the database, `storage/`, `public/uploads/` and the `.env` file. A database backup without the uploads cannot restore the pictures in books.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.