# Send photos, files and sketches to an Agent

> Add photos, videos, files, pasted pictures and sketches to a message, check them before you send, mark up a picture, and what the Agent gets.

Source: https://air.build/docs/projects/send-photos-and-files/

You can send pictures, videos and any other kind of file in a chat, on their own or with a message. Each file waits in the message box until you send. The Agents in the chat get the files with your message.

## Add files to a message

**iPhone**

Tap **+** (**Add Attachment**) beside the message box. A menu opens over the keyboard:

| Option | What it does |
| --- | --- |
| **Camera** | Takes a photo. It's dimmed on a device with no camera. |
| **Photos** | Picks photos and videos from your library. |
| **Files** | Picks files from the Files app. You can pick several at once. |
| **Sketch** | Opens a blank page to draw on. |

Tap **+** again, or tap outside the menu, to close it. iPad works the same way.

**Mac**

Click **+** (**Add Attachment**) beside the message box. A window for choosing files opens straight away, and you can choose several at once. The Mac has no Camera or Sketch.

On iPhone, iPad and Mac, there are other ways to add files:

- Paste a picture into the message box.
- Drag files onto the chat or onto the message box.
- Share from another app on iPhone or iPad. See [Send things to AirBuild from other apps](https://air.build/docs/connect/share-into-airbuild/).

If you paste more than 1,000 characters of text, it goes in as a file named "Pasted Text.txt" instead of into the message box, so the whole text arrives.

### Pick photos on iPhone and iPad

1. Tap **+**, then **Photos**. Your library opens in a panel at the bottom of the screen.
2. Tap the photos and videos you want. The button at the bottom changes from **All Photos** to **Add 1 Photo**, **Add 2 Photos** and so on.
3. Tap **Add _number_ Photos**. The photos go into the message box.

**All Photos** opens the full photo picker instead. **Back** (‹) takes you back to the menu and keeps what you picked. AirBuild doesn't ask for access to your library: it gets only the photos you pick.

### Take a photo on iPhone and iPad

Tap **+**, then **Camera**. Tap **Take Photo**, and the photo goes into the message box. **Switch Camera** swaps the front and back cameras, and **Back** returns to the menu.

If the panel says "Allow AirBuild to use the camera in Settings to take photos here.", tap **Open Settings** and turn on the camera for AirBuild. If it says "The camera isn’t available right now.", try again later.

### Draw a sketch on iPhone and iPad

1. Tap **+**, then **Sketch**. A blank page opens with the drawing tools.
2. Draw on the page. On iPad, **Undo** and **Redo** are at the top. On iPhone they're with the drawing tools.
3. Tap **Done**. The drawing goes into the message box as a picture.

**Done** stays dimmed until you've drawn something. If you tap **Cancel** after drawing, the app asks first. Tap **Discard Sketch** to throw the drawing away. A sketch is always sent as black lines on white, even when your device is in dark mode.

## Check files before you send

Each file shows as a small tile in the message box.

- **Uploading:** a ring fills on the tile. You don't have to wait for it. If you send before it's done, the upload finishes on its own after you send.
- **Upload failed:** a **!** (**Retry Upload**) shows on the tile. Tap it to try again.
- **Remove a file:** tap **✕** (**Remove Attachment**) on the tile's corner.
- **Change the order:** drag a tile to a new place.

To look at a file before you send it:

**iPhone**

Tap a picture's tile to see it full screen. To draw on it, tap the pen, draw, and tap **Done**. The marked-up copy takes the original's place in the message box. Other files don't open from the message box on iPhone and iPad.

**Mac**

Click a tile to see the file in Quick Look.

## What the Agent gets

The Agent gets your message with each file's name, type and size, and downloads the files it needs to work on them.

Files are sent as they are, with one exception. Photos in HEIC or HEIF, the formats an iPhone camera usually saves in, are turned into JPEG so the Agent can look at them. They're made no larger than 2048 pixels on the longest side, and their location data is left out. To send a photo's original file, put it in a zip file first. Archives are always sent unchanged.

Some documents are folders underneath, for example a Pages document, an `.app`, an `.xcodeproj` or an Icon Composer `.icon`. AirBuild sends one of these as a zip of itself, named like `MyIcon.icon.zip`. A plain folder can't be sent: compress it into a zip file first.

## Mark up a picture in the chat

You can draw on any picture in the chat and send it back, for example to circle what's wrong in a screenshot.

**iPhone**

1. Tap the picture to open it full screen.
2. Tap the pen beside **Add a message…** and draw on the picture. Tap **Done** when you've finished drawing.
3. Type a message in **Add a message…** if you want, then tap **Send**.

**Mac**

1. Click the picture to open it.
2. Click the pen (**Markup**) beside **Add a message…**, or press ⇧⌘A (View › **Markup**), and draw on the picture. Click **Done**, or press Esc or Return, when you've finished drawing.
3. Type a message in **Add a message…** if you want, then send.

The picture, with your drawing on it, goes into the same chat as a new message, with your words as its text. The Agent gets it like any other picture. If you move to another picture or close the viewer before you send, the drawing is thrown away. If the picture can't be added, the app shows **Attachment Upload Failed**.

## Open files in the chat

Tap a file in the chat to open it. Pictures open full screen, videos in a player, and other files in a preview. A Markdown file (`.md`) opens as a tab with the chat's other pages, where you can read it: on iPhone it opens over the chat, on iPad in the pane beside the chat, and on the Mac in the inspector.

Touch and hold a file (on the Mac, right-click it) for more. For files other than pictures and videos:

| Device | Options |
| --- | --- |
| iPhone and iPad | **Save As…**, **Open In…** |
| Mac | **Save As…**, **Share…**, **Open in Default App**, **Reveal in Finder** |

A text file also has **Copy All**. Pictures and videos have their own items, such as **Save Photo** and **Save Video**. See [Save or share photos and videos from a chat](https://air.build/docs/projects/save-photos-and-videos-from-a-chat/#save-or-share-from-the-chat).

## If a file isn't added

The message box tells you why a file wasn't added:

| The app says | What to do |
| --- | --- |
| "_name_ is _size_. Attachments are limited to 1 GB." | Each file can be up to 1 GB. Send a smaller file. |
| "_name_ unpacks to _size_. Archives are limited to 4 GB unpacked." | A zip or gzip archive can hold up to 4 GB once unpacked. Split it into smaller archives. |
| "_name_ is a folder. Compress it to attach it." | Compress the folder into a zip file and attach that. |
| "Couldn’t read this photo or video. Try selecting it again." | Pick the photo or video again. |
| "Couldn’t add this attachment. Try selecting it again." | Add the file again. |

## Questions

**Why did my photo arrive as a JPEG?**

The photo was HEIC or HEIF, which AirBuild turns into JPEG so the Agent can look at it. To send the original, put it in a zip file first.

**Can I send several files in one message?**

Yes. Pick several in **Photos** or **Files** (on the Mac, in the file window), or add them one after another. They all go out with the next message you send.

**I can't drop files on a chat.**

The project may be archived. You can't add files to an archived project's chat. Unarchive it first. See [Organize, archive and delete projects](https://air.build/docs/projects/organize-projects/).

**Can I send a file to a different chat later?**

Yes. Forward the message it's in. See [Forward a message to another chat](https://air.build/docs/projects/forward-messages/).
