From 797638e67a6b9ed1df7e03a073426d44b88fa3ef Mon Sep 17 00:00:00 2001 From: cialloo Date: Wed, 29 Oct 2025 08:03:45 +0800 Subject: [PATCH] Remove document file type categorization from getFileType function --- app/internal/logic/uploadpresignedurllogic.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/internal/logic/uploadpresignedurllogic.go b/app/internal/logic/uploadpresignedurllogic.go index 8c7d10a..f153153 100644 --- a/app/internal/logic/uploadpresignedurllogic.go +++ b/app/internal/logic/uploadpresignedurllogic.go @@ -53,12 +53,6 @@ func getFileType(ext string) string { ".bz2": true, ".xz": true, ".iso": true, } - documentExts := map[string]bool{ - ".pdf": true, ".doc": true, ".docx": true, ".xls": true, ".xlsx": true, - ".ppt": true, ".pptx": true, ".txt": true, ".rtf": true, ".odt": true, - ".ods": true, ".odp": true, - } - switch { case imageExts[ext]: return "images" @@ -68,8 +62,6 @@ func getFileType(ext string) string { return "audios" case archiveExts[ext]: return "archives" - case documentExts[ext]: - return "documents" default: return "others" }