mirror of
https://github.com/penpot/penpot.git
synced 2026-07-24 23:18:06 +00:00
🐛 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
This commit is contained in:
parent
f21bd45893
commit
b6629c0034
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user