From 1bab67d36c87780c896c169a4da420f7acc6f25a Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Wed, 9 Apr 2025 09:44:46 +0200 Subject: [PATCH] fix: :bug: use lowercase file ext --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2947726..b2f448c 100644 --- a/main.go +++ b/main.go @@ -9,6 +9,7 @@ import ( "io" "path/filepath" "slices" + "strings" "time" "syscall/js" @@ -100,7 +101,7 @@ func createArchive(this js.Value, args []js.Value) any { return nil } - ext := filepath.Ext(document.Name) + ext := strings.ToLower(filepath.Ext(document.Name)) fileName := fmt.Sprintf("%s_%s%s", filePrefix, file.Suffix, ext) i := 1