From 326e2988012f34359950a51f70ad36c8c8cf2d37 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Thu, 27 May 2021 20:37:19 +0200 Subject: [PATCH] remove "." when constructing the attachment filename * the mimetype library already adds the '.', so no need to add it manually see #136 --- src/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.go b/src/api/api.go index 62e277c..583d035 100644 --- a/src/api/api.go +++ b/src/api/api.go @@ -210,7 +210,7 @@ func send(c *gin.Context, attachmentTmpDir string, signalCliConfig string, numbe mimeType := mimetype.Detect(dec) - attachmentTmpPath := attachmentTmpDir + u.String() + "." + mimeType.Extension() + attachmentTmpPath := attachmentTmpDir + u.String() + mimeType.Extension() attachmentTmpPaths = append(attachmentTmpPaths, attachmentTmpPath) f, err := os.Create(attachmentTmpPath)