Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
63c202b6f8
commit
8074288b1d
@@ -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("/");
|
||||
|
||||
Reference in New Issue
Block a user