mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-12 22:43:13 +00:00
Remove: mutipart file upload
This commit is contained in:
1 parent
7cb27b2102
commit
9d8a462dc4
8 files changed
+211
-93
No files matched your search
@@ -2,6 +2,7 @@ package filesystem
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/HFO4/cloudreve/pkg/util"
|
||||
"github.com/gin-gonic/gin"
|
||||
"path/filepath"
|
||||
@@ -79,8 +80,10 @@ func (fs *FileSystem) CancelUpload(ctx context.Context, path string, file FileHe
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
// 客户端正常关闭,不执行操作
|
||||
fmt.Println("正常")
|
||||
case <-ginCtx.Request.Context().Done():
|
||||
// 客户端取消了上传
|
||||
fmt.Println("取消")
|
||||
if fs.AfterUploadCanceled == nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user