Skip to content
Last updated

File Upload & Download

WebDesktopMobile

Get data into Studio and results out. Upload CSVs, PDFs, and documents to give the AI context for analysis; download the reports, presentations, and datasets it generates — all stored server-side and accessible from any device.

Note

The AI processes uploaded files inside the server-side sandbox. Files are stored per-chat and accessible through the Files panel. Your local filesystem is never accessed.

Objective

Move files between your local device and Studio's server-side environment so the AI can analyze your data and you can export its output.

Prerequisites


File Size Limits

Warning

The maximum file size for uploads is 100 MB per file. If you need to work with larger files, consider splitting them into smaller chunks or uploading only the relevant portions.


Uploading Files

You can upload files to a chat session in two ways: through the chat input or through the Files panel.

From the Chat Input

Web & Desktop

  1. Click the plus button (+) in the chat input toolbar
  2. Select one or more files from the file picker
  3. Files appear as thumbnails below the text area, showing the file name and a category icon
  4. Type your message (e.g., "Summarize this report" or "Load this CSV into a table")
  5. Click Send — the files upload and your message is sent together

You can also drag and drop files directly onto the chat area. When you drag a file over the chat, a blue overlay appears with the message "Drop files here". Release to add the files to your pending attachments.

To remove a pending file before sending, click the X button on its thumbnail.

Mobile (iOS)

  1. Tap the plus button (+) in the chat input toolbar
  2. Choose from:
    • File — Browse and select documents
    • Camera — Take a photo to attach
    • Photos — Select from your photo library
  3. Files appear as pills below the text area
  4. Type your message and tap Send

To remove a pending file, tap the X on its pill.

From the Files Panel

Web & Desktop

  1. Open the Files panel by clicking the folder icon in the chat header
  2. Click the Upload button at the top of the panel
  3. Select a file from the file picker
  4. The file uploads to the current directory

Specifying a Directory

When you have files attached in the chat input, a directory path input appears. This lets you specify which folder the files should be uploaded to within the chat's file system.

  • The default location is the root directory (shown as "(root)")
  • Start typing a path to see autocomplete suggestions from existing folders
  • Select an existing folder or type a new path to create one
Technical Note

Each chat session has its own isolated file system rooted at /home/agent/chats/{chatId}. Files uploaded through the chat input are stored at the specified directory path within this root. The directory path input uses autocomplete based on the current folder tree.

Downloading Files

AI-Generated Files

When the AI creates a file (a report, spreadsheet, presentation, or other output), a "Created file" card appears in the chat with:

  • File icon — Color-coded by category (green for spreadsheets, blue for documents, purple for images, etc.)
  • File name and file size
  • Category label (e.g., "Spreadsheet", "Document", "Presentation")
  • Preview button — Opens the file in the built-in viewer
  • Download button — Downloads the file to your device
File card in chat showing generated file with download button

From the Files Panel

Web & Desktop

  1. Open the Files panel (folder icon in the chat header)
  2. Hover over any file in the file tree
  3. Click the download icon that appears on hover

Or, when viewing a file in the viewer:

  1. Click the Download button in the viewer footer

Mobile (iOS)

Tap the Preview button (eye icon) on any file card to open it. Download functionality on mobile is handled through the iOS share sheet when previewing files.

The Files Panel

The Files panel is your file manager within each chat session. It has two zones:

Zone A: File Explorer

A hierarchical folder tree showing all files in the current chat session.

  • Folders display with a folder icon and expand/collapse on click
  • Files display with a category-colored icon, name, and size
  • Hover over a file to see the download button
  • Click a file to open it in the viewer (Zone B)

When no files exist yet, the panel shows: "No files yet" with the hint "Upload files or ask the AI to generate them".

Zone B: File Viewer

A tabbed viewer area where opened files display. Each open file gets its own tab:

  • Tab bar — Shows file name with a colored dot indicator; click X to close a tab
  • Viewer area — Renders the file using the appropriate viewer (see File Viewers)
  • Fullscreen toggle — Expand the viewer to fill the screen

When no file is selected, the viewer shows: "Select a tab to view file".

Panel Controls

ControlDescription
Folder icon (chat header)Toggle the Files panel open/closed. A dot badge appears when files exist but the panel is closed
Reload button (refresh icon)Refresh the file list from the server
Upload buttonUpload a file to the current directory
Fullscreen / Exit fullscreenExpand or collapse the viewer to fill the screen

Organizing Files in a Work Folder

Work folders expose their files directly, so you can browse, rename, move, upload, and delete them from the sidebar and a dedicated work folder page — without opening a chat. Every work folder keeps its own file space, shared by every chat inside it; a standalone chat instead keeps its files in the per-chat Files panel described above. File management is available on Web and Desktop.

The Sidebar File Tree

In the Work Folders section of the sidebar, click the chevron next to a work folder to expand it. Each expanded work folder lists its Chats and its Files — the work folder's file tree, loaded on demand.

Dotfiles and the work folder's CLAUDE.md are dimmed and sorted last. Click any file to open it in a viewer; use Refresh files to reload the tree from the server. Because the tree lives in the sidebar, you can inspect a work folder's files without starting a conversation.

Treasure AI Studio sidebar with a work folder expanded to show its Chats list and Files tree, including the dimmed CLAUDE.md and .claude entries sorted last

The Work Folder Page

Click a work folder's name in the sidebar to open its page. The page gives a semantic view of everything in the work folder, organized into sections:

Section Contents
InstructionThe standing guidance the AI follows in every chat here, saved as CLAUDE.md. See Core Concepts.
FilesThe work folder's files and folders, in a table showing Name, Updated, and Size.
Local SkillsSkills defined inside the work folder under .claude/skills/, listed by name and description.
ChatsThe conversations started in this work folder. Start a new one with the compose button.

In the Files section, click a folder's chevron to expand it inline, or click the folder name to drill into it — the breadcrumb, rooted at Work Folders, tracks where you are. Clicking a file opens it in the full file view.

Work folder page showing the Instruction, Files, Local Skills, and Chats sections, with the Files table listing folders and files alongside the New folder and Upload buttons

Managing Files

From the work folder page you can organize a work folder's files directly:

Action How
UploadClick Upload to add files to the folder you're currently viewing.
New folderClick New folder and enter a name. Names cannot contain / or be . or ...
RenameOpen a file or folder's ⋯ menu and choose Rename.
MoveDrag a file or folder onto another folder to move it. Moves stay within a single work folder — you cannot drag files between work folders.
DeleteOpen the ⋯ menu and choose Delete. You can delete files and folders; deleting a folder also removes everything inside it, so Studio shows the item count and asks you to confirm first.
Ask AIClick Ask AI (the ✨ button) on a file or folder to start a new chat in that work folder with the path pre-filled in the composer.
Note

File organization applies to work folders. A standalone chat keeps its files in the per-chat Files panel and is not browsable from the sidebar file tree.

File Categories

Studio categorizes files by extension and displays them with color-coded icons:

CategoryExtensionsIcon Color
Spreadsheetcsv, xlsx, xls, tsvGreen
Documentmd, txt, pdf, doc, docx, html, htmBlue
Presentationpptx, pptBlue
Imagepng, jpg, jpeg, gif, svg, webpPurple
Codejs, ts, py, sql, sh, yaml, ymlOrange
Datajson, xml, mmd, mermaidBlue
Journey*.journey.yaml, *.journey.ymlTeal
FileAll other extensionsGray

Upload Errors

If a file upload fails, you see the message: "File upload failed. Message not sent." The message is not sent to the AI when all file uploads fail.

If some files in a batch succeed and others fail, the message is sent with only the successfully uploaded files.

File Retention & Deletion

Files stored in Studio are subject to the following retention rules:

Scenario What Happens to Files
Standalone chat deletedAll files associated with that chat are permanently deleted
Work folder chat deletedFiles are not deleted. They remain accessible in the work folder workspace
Automatic expirationFiles in standalone chats are automatically deleted after the configured chat retention period (default: 28 days). Files in work folder chats are not deleted
Important

File deletion is permanent and cannot be undone. Download any files you need before deleting a standalone chat or before the retention period expires.

Verification

  • Attach a file via the plus button and see it appear as a thumbnail/pill
  • Send a message with the file and see the AI reference its contents
  • Download an AI-generated file using the Download button on a "Created file" card

Troubleshooting

IssueSolution
"File upload failed. Message not sent."Check your network connection and try again. Files must be under 100 MB — if larger, split the file or upload only the relevant section
Uploaded file not referenced by AIThe AI processes file contents asynchronously. Wait for the upload indicator to complete, then re-send your message
Download button not visibleOnly AI-generated files show a Download button on the "Created file" card. Uploaded files can be downloaded from the Files panel

Next Steps