diff --git a/src/handlers/docs/handleDocUpload.go b/src/handlers/docs/handleDocUpload.go index e531f2e..9353c4b 100644 --- a/src/handlers/docs/handleDocUpload.go +++ b/src/handlers/docs/handleDocUpload.go @@ -45,6 +45,7 @@ func HandleDocUpload(c *gin.Context) { "application/pdf": true, "application/rtf": true, "application/x-freearc": true, + "application/zip": true, } if !allowedMimeTypes[fileType] { diff --git a/ui/src/components/docs-input.tsx b/ui/src/components/docs-input.tsx index ceaec0d..c899022 100644 --- a/ui/src/components/docs-input.tsx +++ b/ui/src/components/docs-input.tsx @@ -13,7 +13,7 @@ const DocsInput: React.FC<{ for (let file of fileRef.current.files) { names.push(file.name); } - + setFileNames(names); } }; @@ -28,7 +28,7 @@ const DocsInput: React.FC<{