The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix: resolve image upload ERR_ACCESS_DENIED and dialog a11y warning
Forgotten4b7fdaea01bf
diff --git a/ui/src/api/assets.ts b/ui/src/api/assets.tsindex b895ae0bf5..25555a6aac 100644--- a/ui/src/api/assets.ts+++ b/ui/src/api/assets.ts@@ -2,9 +2,16 @@ import type { AssetImage } from "@paperclip/shared";import { api } from "./client";export const assetsApi = {- uploadImage: (companyId: string, file: File, namespace?: string) => {+ uploadImage: async (companyId: string, file: File, namespace?: string) => {+ // Read file data into memory eagerly so the fetch body is self-contained.+ // Clipboard-paste File objects reference transient data that the browser may+ // discard after the paste-event handler returns, causing ERR_ACCESS_DENIED+ // when fetch() later tries to stream the FormData body.+ const buffer = await file.arrayBuffer();+ const safeFile = new File([buffer], file.name, { type: file.type });+const form = new FormData();- form.append("file", file);+ form.append("file", safeFile);if (namespace && namespace.trim().length > 0) {form.append("namespace", namespace.trim());}diff --git a/ui/src/components/NewIssueDialog.tsx b/ui/src/components/NewIssueDialog.tsxindex 1aead1e960..1649d882f4 100644--- a/ui/src/components/NewIssueDialog.tsx+++ b/ui/src/components/NewIssueDialog.tsx@@ -237,6 +237,7 @@ export function NewIssueDialog() {><DialogContentshowCloseButton={false}+ aria-describedby={undefined}className={cn("p-0 gap-0 flex flex-col max-h-[calc(100vh-6rem)]",expanded