paperclipai/paperclip · error · Error

This file type cannot be attached here

Error message

This file type cannot be attached here

What it means

A file was offered to the composer's attach handler whose MIME type is not accepted there (images only). The client-side type guard rejects unsupported file types before any upload starts.

Source

Thrown at ui/src/components/task-chat/TaskChatComposer.tsx:285

        {profile?.image ? <AvatarImage src={profile.image} alt="" /> : null}
        <AvatarFallback>{identityInitials(resolvedLabel)}</AvatarFallback>
      </Avatar>
    );
  }

  return null;
}

const MODE_DESCRIPTION: Partial<Record<IssueWorkMode, string>> = {
  standard: "Make changes and run work",
  planning: "Draft a plan before acting",
  ask: "Answer questions only, no changes",
};

/** v7 per-mode placeholder copy; `{agent}` is the pending assignee's name. */
function modePlaceholder(mode: IssueWorkMode, agentName: string): string {
  switch (mode) {
    case "planning":
      return `Plan with ${agentName} — shapes the plan doc, no code changes…`;
    case "ask":
      return `Ask ${agentName} a question — read-only, nothing runs…`;
    default:
      return `Message ${agentName} — describe what you want done…`;
  }
}

type ComposerAttachment = {
  id: string;
  name: string;
  size?: number;
  status: "uploading" | "attached" | "error";
  error?: string;
  /** Set once uploaded; the submit path appends `[name](contentPath)` lines. */
  contentPath?: string;
};

View on GitHub (pinned to 01ad858492)

Solutions

  1. Attach a file of a supported type (e.g. image formats allowed here), or convert the file first.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at ui/src/components/task-chat/TaskChatComposer.tsx:214 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18). Data as JSON: /api/errors/7e102b6d573c3566. Report an issue: GitHub.