Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-17 02:12:32 +00:00
co-authored by renee-png
parent 63c202b6f8
commit 8074288b1d
+1 -2
View File
@@ -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("/");