From 9f522c8eb6a6066f86d47a3d311b970cd01cc04e Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Wed, 22 Jul 2020 10:33:49 +0200 Subject: [PATCH] fix: store zipped items inside "Items" subfolder --- app/assets/javascripts/services/archiveManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/services/archiveManager.js b/app/assets/javascripts/services/archiveManager.js index 08b5eb416..fd4d648d5 100644 --- a/app/assets/javascripts/services/archiveManager.js +++ b/app/assets/javascripts/services/archiveManager.js @@ -119,7 +119,7 @@ export class ArchiveManager { const fileSuffix = `-${item.uuid.split("-")[0]}.txt`; // Standard max filename length is 255. Slice the note name down to allow filenameEnd filePrefix = filePrefix.slice(0, (255 - fileSuffix.length)); - const fileName = `${item.content_type}/${filePrefix}${fileSuffix}`; + const fileName = `Items/${item.content_type}/${filePrefix}${fileSuffix}`; zipWriter.add(fileName, new zip.BlobReader(blob), () => { index++; if(index < items.length) {