mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-20 08:04:28 +01:00
remove "." when constructing the attachment filename
* the mimetype library already adds the '.', so no need to add it manually see #136
This commit is contained in:
@@ -210,7 +210,7 @@ func send(c *gin.Context, attachmentTmpDir string, signalCliConfig string, numbe
|
|||||||
|
|
||||||
mimeType := mimetype.Detect(dec)
|
mimeType := mimetype.Detect(dec)
|
||||||
|
|
||||||
attachmentTmpPath := attachmentTmpDir + u.String() + "." + mimeType.Extension()
|
attachmentTmpPath := attachmentTmpDir + u.String() + mimeType.Extension()
|
||||||
attachmentTmpPaths = append(attachmentTmpPaths, attachmentTmpPath)
|
attachmentTmpPaths = append(attachmentTmpPaths, attachmentTmpPath)
|
||||||
|
|
||||||
f, err := os.Create(attachmentTmpPath)
|
f, err := os.Create(attachmentTmpPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user