mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-11 03:33:53 +08:00
发布v2.15.7版本,更新内容请查看:https://github.com/bufanyun/hotgo/tree/v2.0/docs/guide-zh-CN/addon-version-upgrade.md
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user