processHeavyweightFile 处理重量级文件(html, htm)- 完整保护策略
(task *UploadTask)
| 130 | |
| 131 | // processHeavyweightFile 处理重量级文件(html, htm)- 完整保护策略 |
| 132 | func (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 |
| 140 | func (fp *FileProcessor) detectAndConvertEncoding(file multipart.File) (io.Reader, error) { |
nothing calls this directly
no test coverage detected