Skip to content

Commit

Permalink
feat: add support for txt files (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caixetadev committed Jan 28, 2024
1 parent 4649cf6 commit 5b1715c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/handlers/docs/handleDocUpload.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ func HandleDocUpload(c *gin.Context) {
fileType := http.DetectContentType(fileBuffer)

allowedMimeTypes := map[string]bool{
"text/plain": true,
"application/msword": true,
"text/plain": true,
"text/plain; charset=utf-8": true,
"application/msword": true,
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": true,
"application/vnd.openxmlformats-officedocument.presentationml.presentation": true,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": true,
Expand Down

0 comments on commit 5b1715c

Please sign in to comment.