feat!: unity iframe preview

This commit is contained in:
Noah Hsu
2022-08-23 16:50:54 +08:00
parent e9927806d4
commit d9ee174dd3
4 changed files with 31 additions and 22 deletions

View File

@ -53,9 +53,9 @@ func CreateTempFile(r io.ReadCloser) (*os.File, error) {
// GetFileType get file type
func GetFileType(filename string) int {
ext := Ext(filename)
if SliceContains(conf.TypesMap[conf.OfficeTypes], ext) {
return conf.OFFICE
}
//if SliceContains(conf.TypesMap[conf.OfficeTypes], ext) {
// return conf.OFFICE
//}
if SliceContains(conf.TypesMap[conf.AudioTypes], ext) {
return conf.AUDIO
}