This commit is contained in:
laodaming
2023-10-13 17:44:02 +08:00
parent 7b3a16353c
commit dbffda69fd
2 changed files with 48 additions and 2 deletions

View File

@@ -1,7 +1,6 @@
package logic
import (
"fmt"
"fusenapi/utils/auth"
"fusenapi/utils/basic"
"fusenapi/utils/file"
@@ -63,7 +62,7 @@ func (l *UploadFileBackendLogic) UploadFileBackend(req *types.UploadFileBackendR
l.r.ParseMultipartForm(32 << 20)
fileObject, _, err := l.r.FormFile("file")
fmt.Printf("%#v", fileObject)
//fmt.Printf("%#v", fileObject)
if err != nil {
logx.Error(err)
return resp.SetStatus(basic.CodeFileUploadErr, "file upload err,no files")