From b6629c00342bb16b67833d847d6d7accf9e3931c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 23 Jul 2026 10:26:22 +0200 Subject: [PATCH] :bug: Mark non-Penpot zip files as unknown in import worker (#10782) Non-export zip files were tagged as :legacy-zip with the body attached, causing downstream parsing to crash on unrecognized zip content. Now they are marked :unknown, matching how other unrecognized formats are handled, so the import fails gracefully. AI-assisted-by: deepseek-v4-flash --- frontend/src/app/worker/import.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/worker/import.cljs b/frontend/src/app/worker/import.cljs index e03bcaa4c8..91ce6b92c8 100644 --- a/frontend/src/app/worker/import.cljs +++ b/frontend/src/app/worker/import.cljs @@ -98,7 +98,7 @@ (if (= (:type manifest) "penpot/export-files") (let [manifest (decode-manifest manifest)] (assoc file :type :binfile-v3 :files (:files manifest))) - (assoc file :type :legacy-zip :body body)))) + (assoc file :type :unknown)))) (rx/finalize (partial uz/close zip-reader)))) (= "application/octet-stream" mtype)