MM-64658 Fix handling of upload sessions (#32141)
* MM-64658 Fix handling of upload sessions * Fix style issue
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4b77485e8f
Коммит
ad38971dd6
@@ -9,6 +9,7 @@ import (
|
||||
"io"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
@@ -39,6 +40,8 @@ func createUpload(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
us.RemoteId = ""
|
||||
us.ReqFileId = ""
|
||||
|
||||
us.Filename = filepath.Base(us.Filename)
|
||||
|
||||
auditRec := c.MakeAuditRecord("createUpload", model.AuditStatusFail)
|
||||
defer c.LogAuditRec(auditRec)
|
||||
model.AddEventParameterAuditableToAuditRec(auditRec, "upload", &us)
|
||||
|
||||
Ссылка в новой задаче
Block a user