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)