From 683845aff96a863782761bad5f52dad50d6bd3de Mon Sep 17 00:00:00 2001 From: Peter Nemere Date: Mon, 4 Nov 2024 11:50:12 +1000 Subject: [PATCH] Fix image/msa path for scan upload --- api/ws/handlers/scan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ws/handlers/scan.go b/api/ws/handlers/scan.go index b0374a42..9e4b1c8f 100644 --- a/api/ws/handlers/scan.go +++ b/api/ws/handlers/scan.go @@ -523,13 +523,13 @@ func processEM(importId string, zipReader *zip.Reader, zippedData []byte, destBu if p, err := readFromZip(f, localMSAPath); err != nil { return err } else { - msas = append(msas, p) + msas = append(msas, path.Base(p)) } } else if strings.HasSuffix(f.Name, ".jpg") { if p, err := readFromZip(f, localImagesPath); err != nil { return err } else { - images = append(images, p) + images = append(images, path.Base(p)) } } }