mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: recycling file storage and user capacity when uploading canceled
This commit is contained in:
@@ -70,6 +70,7 @@ func FileUploadStream(c *gin.Context) {
|
||||
|
||||
// 给文件系统分配钩子
|
||||
fs.BeforeUpload = filesystem.GenericBeforeUpload
|
||||
fs.AfterUploadCanceled = filesystem.GenericAfterUploadCanceled
|
||||
|
||||
// 执行上传
|
||||
uploadCtx := context.WithValue(ctx, "ginCtx", c)
|
||||
|
||||
Reference in New Issue
Block a user