From 8aa8226b129c683b2be788bbdba3ccd44bbe1232 Mon Sep 17 00:00:00 2001 From: Stefan Bohacek Date: Wed, 30 Aug 2023 12:56:18 -0400 Subject: [PATCH] Added support for ZIP files. --- routes/extract-data.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/extract-data.js b/routes/extract-data.js index 2a6dba4..efdf1c4 100644 --- a/routes/extract-data.js +++ b/routes/extract-data.js @@ -21,6 +21,7 @@ router.post("/", upload, async (req, res) => { if (file) { switch (file.mimetype) { case 'application/x-gzip': + case 'application/x-zip-compressed': const files = await decompress(file.buffer) // let JSONfiles = files.filter(file => file.path.endsWith('.json'));