mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: after uploading finished hook
This commit is contained in:
@@ -71,6 +71,8 @@ func FileUploadStream(c *gin.Context) {
|
||||
// 给文件系统分配钩子
|
||||
fs.BeforeUpload = filesystem.GenericBeforeUpload
|
||||
fs.AfterUploadCanceled = filesystem.GenericAfterUploadCanceled
|
||||
fs.AfterUpload = filesystem.GenericAfterUpload
|
||||
fs.AfterValidateFailed = filesystem.GenericAfterUploadCanceled
|
||||
|
||||
// 执行上传
|
||||
uploadCtx := context.WithValue(ctx, filesystem.GinCtx, c)
|
||||
|
||||
Reference in New Issue
Block a user