mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Feat: file upload handler
This commit is contained in:
@@ -17,11 +17,8 @@ func FileUpload(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
var (
|
||||
ctx context.Context
|
||||
cancel context.CancelFunc
|
||||
)
|
||||
ctx, cancel = context.WithCancel(context.Background())
|
||||
// 建立上下文
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
var service file.UploadService
|
||||
defer cancel()
|
||||
|
||||
Reference in New Issue
Block a user