mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: after uploading hooks and checks
This commit is contained in:
@@ -73,7 +73,7 @@ func FileUploadStream(c *gin.Context) {
|
||||
fs.AfterUploadCanceled = filesystem.GenericAfterUploadCanceled
|
||||
|
||||
// 执行上传
|
||||
uploadCtx := context.WithValue(ctx, "ginCtx", c)
|
||||
uploadCtx := context.WithValue(ctx, filesystem.GinCtx, c)
|
||||
err = fs.Upload(uploadCtx, fileData)
|
||||
if err != nil {
|
||||
c.JSON(200, serializer.Err(serializer.CodeUploadFailed, err.Error(), err))
|
||||
|
||||
Reference in New Issue
Block a user