🐛 Incorrect rtfd file handling when Insert image or file on macOS https://github.com/siyuan-note/siyuan/issues/9585

This commit is contained in:
Daniel 2023-11-04 08:58:35 +08:00
parent 296d28f7d6
commit bad8c5d723
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -150,6 +150,8 @@ func Upload(c *gin.Context) {
for _, file := range files {
baseName := file.Filename
logging.LogInfof("uploading %s", baseName)
fName := baseName
fName = util.FilterUploadFileName(fName)
ext := filepath.Ext(fName)