diff --git a/server/app/files.go b/server/app/files.go index 1474a291a..7be88ee33 100644 --- a/server/app/files.go +++ b/server/app/files.go @@ -97,7 +97,7 @@ func (a *App) GetFile(teamID, rootID, fileName string) (*mmModel.FileInfo, files var filePath string - if fileInfo != nil && fileInfo.Path != "" { + if fileInfo != nil && fileInfo.Path != "" && fileInfo.Path != emptyString { filePath = fileInfo.Path } else { filePath = filepath.Join(teamID, rootID, fileName)