mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-17 16:36:49 +00:00
fix(upload): don't mark every folder-upload file as conflicting (#5813)
This commit is contained in:
parent
6700a981a5
commit
6dcef07f40
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue