Browse Source

Merge branch 'security_fix/uploadfile_ix' into debug

kobe6258 3 months ago
parent
commit
91805b979c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/resource.go

+ 1 - 0
controllers/resource.go

@@ -1159,6 +1159,7 @@ func (this *ResourceController) FileUpload() {
 	if !utils.IsValidType(fileData, []utils.SourceType{
 		utils.Image,
 		utils.Document,
+		utils.Archive,
 	}, []string{
 		"jpg",
 		"png",