fix(upload): don't mark every folder-upload file as conflicting (#5813)

This commit is contained in:
Sergio 2026-03-11 11:34:49 -07:00 committed by GitHub
parent 6700a981a5
commit 6dcef07f40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ export function checkConflict(
const file = files[i];
let name = file.name;
if (folder_upload) {
if (folder_upload && file.isDir) {
const dirs = file.fullPath?.split("/");
if (dirs && dirs.length > 1) {
name = dirs[0];