We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9171dd commit ab99bc0Copy full SHA for ab99bc0
backend/internal/handlers/docs/handleDocUpload.go
@@ -35,8 +35,9 @@ func HandleDocUpload(c *gin.Context) {
35
fileType := http.DetectContentType(fileBuffer)
36
37
allowedMimeTypes := map[string]bool{
38
- "text/plain": true,
39
- "application/msword": true,
+ "text/plain": true,
+ "text/plain; charset=utf-8": true,
40
+ "application/msword": true,
41
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": true,
42
"application/vnd.openxmlformats-officedocument.presentationml.presentation": true,
43
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": true,
0 commit comments