mirror of https://github.com/Xhofe/alist
fix: type of file with name uppercase
parent
9e5ef974a7
commit
b197322cd8
|
@ -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
|
||||
//}
|
||||
|
|
Loading…
Reference in New Issue