From 9712bdf5f091b765dc498411d1d1e20fb9a57775 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 27 May 2023 16:00:34 -0500 Subject: [PATCH] Update:Check if directory already exists before upload #1497 --- client/components/cards/ItemUploadCard.vue | 1 + client/pages/upload/index.vue | 38 ++++++++++++++++++---- client/plugins/constants.js | 2 +- server/controllers/FileSystemController.js | 31 +++++++++++++++--- server/routers/ApiRouter.js | 1 + 5 files changed, 61 insertions(+), 12 deletions(-) diff --git a/client/components/cards/ItemUploadCard.vue b/client/components/cards/ItemUploadCard.vue index 96616dd5..21d97b20 100644 --- a/client/components/cards/ItemUploadCard.vue +++ b/client/components/cards/ItemUploadCard.vue @@ -114,6 +114,7 @@ export default { var files = this.item.itemFiles.concat(this.item.otherFiles) return { index: this.item.index, + directory: this.directory, ...this.itemData, files } diff --git a/client/pages/upload/index.vue b/client/pages/upload/index.vue index 9eb3108d..09a9008b 100644 --- a/client/pages/upload/index.vue +++ b/client/pages/upload/index.vue @@ -78,6 +78,7 @@