MCPcopy Create free account
hub / github.com/53AI/53AIHub / LoadUploadFile

Method LoadUploadFile

api/model/file.go:1720–1729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1718}
1719
1720func (file *File) LoadUploadFile() error {
1721 if file.UploadFileID > 0 {
1722 uploadFile, err := GetUploadFileByID(file.UploadFileID)
1723 if err != nil {
1724 return nil
1725 }
1726 file.UploadFile = uploadFile
1727 }
1728 return nil
1729}
1730
1731// GetFileWithParentsByID 根据文件ID查询文件及其所有父级文件
1732// 返回当前文件对象和按深度倒序排列的文件列表(包含当前文件)

Callers 10

GetAccurateFileNameMethod · 0.95
getWPSFileCommonFunction · 0.80
renameWPSFileFunction · 0.80
executeWPSFileUploadFunction · 0.80
completeWPSFileUploadFunction · 0.80
GetFileFunction · 0.80
PreviewRawFileContentFunction · 0.80
processSoloFileChatFunction · 0.80

Calls 1

GetUploadFileByIDFunction · 0.85

Tested by

no test coverage detected