fix: type of file with name uppercase

pull/1831/head
Noah Hsu 2022-09-14 15:14:04 +08:00
parent 9e5ef974a7
commit b197322cd8
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"io"
"os"
"path/filepath"
"strings"
"github.com/alist-org/alist/v3/internal/conf"
log "github.com/sirupsen/logrus"
@ -56,7 +57,7 @@ func CreateTempFile(r io.ReadCloser) (*os.File, error) {
// GetFileType get file type
func GetFileType(filename string) int {
ext := Ext(filename)
ext := strings.ToLower(Ext(filename))
//if SliceContains(conf.TypesMap[conf.OfficeTypes], ext) {
// return conf.OFFICE
//}