This commit is contained in:
孟帅
2024-07-21 22:21:02 +08:00
parent 7d8330f72f
commit a37d088360
440 changed files with 6303 additions and 3339 deletions

View File

@@ -196,9 +196,9 @@ func GetFileMeta(file *ghttp.UploadFile) (meta *FileMeta, err error) {
}
// 兼容naiveUI
naiveType := "text/plain"
if IsImgType(Ext(file.Filename)) {
naiveType = ""
naiveType := meta.MimeType
if len(naiveType) == 0 {
naiveType = "text/plain"
}
meta.NaiveType = naiveType