# Download and import

Download a folder as a ZIP or a single file as itself, and add files from your computer by dragging them onto a folder.

## Downloading a folder

1. Right-click a folder in the sidebar and choose **Download as ZIP**.
2. Choose what goes in the ZIP:
   - **Folder only**: the folder and everything inside it.
   - **Folder and linked files**: the same, plus the files outside the folder that its documents link to, such as portraits and cards.
3. Click **Download**. Your browser saves a ZIP named after the folder and the date, such as `Mistwood 2026-12-02.zip`.

One download holds at most 500 files and 50 MB. For a bigger folder, download its subfolders one at a time.

![The download dialog for a campaign folder.](https://dunjii.com/docs-assets/your-files/download-dialog.webp)

## What the ZIP contains

The ZIP holds the folder and its subfolders as the sidebar shows them:

- each document as a markdown file, frontmatter included
- each picture as an image file, beside its notes file (`Name.metadata.md`)
- each folder's `metadata.md`, so the folders keep their type, theme and other [settings](https://dunjii.com/docs/organizing/folder-settings.md)

```text
Mistwood/
  metadata.md
  Party.md
  Session 3/
    metadata.md
    The Ferry Crossing.md
    scenes/
      The Tithe Barn.md
```

- `metadata.md`: The campaign's settings.
- `metadata.md`: Makes this folder a session.

With **Folder and linked files**, the paths in the ZIP start at the top of your workspace, so a portrait from `Library/Portraits` keeps its place and links to it still work. The ZIP also includes the `metadata.md` of each folder above those files, so a spell copied out of `Library/Spells` is still a spell.

## The whole workspace

Dunjii has no single download for the whole workspace. Download each top-level folder, or use the [desktop app](https://dunjii.com/docs/your-files/desktop-app.md), which keeps a copy of the whole workspace in a folder on your computer.

**Settings › Account** has **Download a copy of my data (JSON)** under **Your data**. It saves one JSON file with your account details and the text of your documents; pictures are listed by address, not included. Dunjii can't import this file.

## Downloading a file

Right-click a document or picture in the sidebar and choose **Download**:

- **File only** saves the file as Dunjii stores it: a document as its markdown file, a picture as its image file.
- **File and linked files** saves a ZIP of the file and the files it links to, such as portraits and cards.

A PDF downloads as itself, with no choice to make.

To read a document's markdown in the browser, choose **View raw markdown** from the same menu. It opens the document's address with `.md` added to the end, which you can also type yourself.

![The sidebar menu for one document.](https://dunjii.com/docs-assets/your-files/file-menu.webp)

## Importing files

Drag files or folders from your computer onto a folder's page in Dunjii. They go into the folder you have open, and a dropped folder keeps its structure. **Upload files**, at the bottom of a folder's page, opens a file picker instead.

- Dunjii takes Markdown, PDF, CSV and ZIP files, and PNG, JPEG, WebP and GIF images. PDFs need the Pro plan.
- A ZIP is unpacked into the folder. A CSV becomes markdown: one document per row when the rows are records, or one table.
- A markdown file without a `type:` takes the folder's [`defaultType`](https://dunjii.com/docs/organizing/folder-settings.md).
- Files and folders whose names start with a dot, such as `.obsidian`, are skipped. One drop takes up to 5,000 files, and each markdown file can be up to 256 KB.

When Dunjii can't tell what type some files are, it lists them before importing, under a title such as **Import 29 files into Session 3**. Set a **Type** for each row, then click **Import 29 files**.

When Dunjii unpacks a ZIP, a message with **Undo** appears for 30 seconds. When the list opened, it shows **Undo import** once the files are in. Either one removes every file the drop added.

## Obsidian and Notion

To import an Obsidian vault, drop the vault's folder, or a ZIP of it, onto a folder in Dunjii. A Notion export ZIP works the same way. Dunjii reads the tags and types from Obsidian notes and the property lists from Notion pages, and writes them as frontmatter. Notion exports each database as a CSV file as well as its pages; Dunjii keeps the pages.

To keep writing in Obsidian after you import, sync the workspace to a folder with the [desktop app](https://dunjii.com/docs/your-files/desktop-app.md) and open that folder as your vault.
