diff --git a/src/components/cases/documents-tab.tsx b/src/components/cases/documents-tab.tsx index 2f0fbb0..b25823b 100644 --- a/src/components/cases/documents-tab.tsx +++ b/src/components/cases/documents-tab.tsx @@ -121,8 +121,7 @@ export function CaseDocumentsTab({ caseId }: { caseId: string }) { let ok = 0; for (const f of list) { // webkitRelativePath supports folder uploads when input has webkitdirectory - // @ts-expect-error – non-standard but widely supported - const rel: string = f.webkitRelativePath || ""; + const rel: string = (f as File & { webkitRelativePath?: string }).webkitRelativePath || ""; let folderForFile = baseFolder; if (rel && rel.includes("/")) { const parts = rel.split("/");