Feat: remote delete file / Fix: broken Filesystem recycle in upload request

This commit is contained in:
HFO4
2020-01-01 20:15:05 +08:00
parent e9f02940ee
commit ee08821361
14 changed files with 152 additions and 24 deletions

View File

@@ -265,7 +265,6 @@ func FileUploadStream(c *gin.Context) {
c.JSON(200, serializer.Err(serializer.CodePolicyNotAllowed, err.Error(), err))
return
}
defer fs.Recycle()
// 给文件系统分配钩子
fs.Use("BeforeUpload", filesystem.HookValidateFile)