Remove: mutipart file upload

This commit is contained in:
HFO4
2019-11-22 14:56:46 +08:00
parent 7cb27b2102
commit 9d8a462dc4
8 changed files with 211 additions and 93 deletions

View File

@@ -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
}