Attaching Context
Attach files to your prompts — images, videos, PDFs, and code files as AI context or app assets.
Primio has a built-in file viewer that opens attachments and project files in full screen without leaving the workspace. It works in two places, with slightly different rules for what’s clickable.
The right viewer is picked automatically based on the file type.
Attachments shown in the composer and in sent messages are only clickable when the file type can be previewed in the browser. Previewable types open the full-screen viewer; non-previewable types render as a static file card with no click affordance.
This applies to:
In the project file tree, every file is clickable regardless of type. Unsupported and binary files don’t get a real preview — instead, the viewer shows a placeholder (“Binary file — Preview is not available for this file type”) so you can confirm the file exists in the tree and move on.
| File type | Preview |
|---|---|
| Images (JPEG, PNG, WebP, GIF, SVG, AVIF, …) | Zoomed-to-fit image |
| Video (MP4, WebM, OGG, MOV, …) | Player with controls |
| Audio | Audio player |
| Inline PDF viewer | |
| Text and code | Syntax-highlighted source with line numbers |
| Everything else | Placeholder showing filename, type, and size |
“Everything else” includes formats the browser cannot decode natively — TIFF, HEIC/HEIF, AVI, MKV, WMV, archives, fonts, and any other binary format. These still upload, but the preview can’t render them — and the AI may not be able to analyze their contents either. For details on what the AI can and can’t read, see Attaching Context.
The placeholder is only shown in the file browser (where any file can be opened). In chat and the composer, non-previewable files simply aren’t clickable.
On mobile, previews open full-screen with a back button.
Attaching Context
Attach files to your prompts — images, videos, PDFs, and code files as AI context or app assets.
File Browser
Browse your project’s code and verify generated assets.