# File page

> On iPhone, a file you tap in a project's Files opens as a page of its own, named after the file, with Export in its top-right corner.

Source: https://air.build/docs/screens/files/file-page/

> [!NOTE]
> iPhone, and iPad in a narrow window, only. On the Mac and on iPad at full width, a file opens beside the tree in [Files](https://air.build/docs/screens/files/project-files/) instead.

The File page shows one of the project's files on iPhone. Its title is the file's name; the page holds the file itself and an **Export** button. Like Files, it's read-only.

## Open it

1. Open the project's [Files](https://air.build/docs/screens/files/project-files/#open-it).
2. Open folders in the tree and tap a file.

The page slides in over the tree. Go back with the back button in the top-left corner, or swipe from the left edge. Going back closes the file, so the tree no longer marks it.

When you leave Files and come back, it opens on the tree again, with no file open.

## What's on it

| Item | What it shows or does |
| --- | --- |
| Back button | Top left: back to the tree. |
| Title | The file's name. |
| **Export** (a square with an arrow) | Top right: exports this file. The share sheet opens, where you can save it to Files or send it to another app. A spinner takes its place while the file is fetched. |
| Text and code | Shown with line numbers and coloring for its language. Lines don't wrap: scroll sideways for long lines. Touch and hold to select text and copy it. With a keyboard attached, **⌘F** finds in the file. |
| "Showing the first 1 MB of this file." | A strip over a long text file: only its first 1 MB is shown. |
| Picture | PNG, JPEG, GIF, HEIC, WebP, TIFF, BMP and ICO files are shown fitted to the screen. |
| Anything else | "No Preview Available" — "This file isn't text or a picture." Use **Export** to get the file. |

While the file is read, placeholder lines stand in for its text. The page keeps your place in the file when you switch tabs and come back.

If you turn the iPad or widen its window so Files has room for two columns, the page goes and the file shows beside the tree.

## Messages

| Message | When | What to do |
| --- | --- | --- |
| **Unable to Open File**, with a reason | The file couldn't be read. The reasons are listed on [Files](https://air.build/docs/screens/files/project-files/#messages). | Tap **Try Again**. |
| **Unable to Open File** — "This picture couldn't be loaded." | A picture didn't load. | Go back and open it again, or **Export** it. |
| **Unable to Export Source** — "The file couldn’t be downloaded. Try again." | **Export** couldn't fetch the file. | Tap **OK** and try again. |
