Fixed Safair ZIP upload issue.

main
Stefan Bohacek 2023-08-30 13:57:19 -04:00
rodzic 2afff9c807
commit 596aa5c94c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FC75CD588A42BC10
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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'));