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

Method processHeavyweightFile

api/service/file_processor.go:132–137  ·  view source on GitHub ↗

processHeavyweightFile 处理重量级文件(html, htm)- 完整保护策略

(task *UploadTask)

Source from the content-addressed store, hash-verified

130
131// processHeavyweightFile 处理重量级文件(html, htm)- 完整保护策略
132func (fp *FileProcessor) processHeavyweightFile(task *UploadTask) error {
133 fmt.Printf("使用完整保护策略 - 文件: %s\n", task.FileHeader.Filename)
134
135 // 重量级文件处理:完整保护,包括原始文件备份
136 return fp.processWithTransactionProtection(task, true)
137}
138
139// detectAndConvertEncoding 检测并转换文件编码为UTF-8
140func (fp *FileProcessor) detectAndConvertEncoding(file multipart.File) (io.Reader, error) {

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.80

Tested by

no test coverage detected