From 596aa5c94c766a71790352668051b3ccca53b1ff Mon Sep 17 00:00:00 2001 From: Stefan Bohacek Date: Wed, 30 Aug 2023 13:57:19 -0400 Subject: [PATCH] Fixed Safair ZIP upload issue. --- routes/extract-data.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/extract-data.js b/routes/extract-data.js index 626284a..459d562 100644 --- a/routes/extract-data.js +++ b/routes/extract-data.js @@ -15,13 +15,14 @@ const router = express.Router(); router.post("/", upload, async (req, res) => { const {file} = req; - console.log({file}); + // console.log({file}); let data = {}; if (file) { switch (file.mimetype) { case 'application/x-gzip': case 'application/x-zip-compressed': + case 'application/zip': const files = await decompress(file.buffer) // let JSONfiles = files.filter(file => file.path.endsWith('.json'));