From 5e27ba5c8c1be603c6ae7fec8de48e3532dea1f7 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Mon, 19 Oct 2020 13:11:26 +0000 Subject: [PATCH] fix: file upload missing path slash --- frontend/src/components/files/Listing.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/files/Listing.vue b/frontend/src/components/files/Listing.vue index 96e93670..60a50c80 100644 --- a/frontend/src/components/files/Listing.vue +++ b/frontend/src/components/files/Listing.vue @@ -368,7 +368,7 @@ export default { } let files = await upload.scanFiles(dt) - let path = this.$route.path + base + let path = this.$route.path.endsWith('/') ? this.$route.path + base : this.$route.path + '/' + base let items = this.req.items if (base !== '') { @@ -409,7 +409,7 @@ export default { } } - let path = this.$route.path + let path = this.$route.path.endsWith('/') ? this.$route.path : this.$route.path + '/' let conflict = upload.checkConflict(files, this.req.items) if (conflict) {