mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-21 13:54:18 +00: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:
parent
68c6595ab9
commit
326e298801
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user