Skip to content

Commit

Permalink
fix: type of file with name uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 14, 2022
1 parent 9e5ef97 commit b197322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/utils/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"os"
"path/filepath"
"strings"

"github.com/alist-org/alist/v3/internal/conf"
log "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -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
//}
Expand Down

0 comments on commit b197322

Please sign in to comment.