fix(ftp-server): work unproperly when base url is not root (#7693)

* fix(ftp-server): work unproperly when base url is not root

* fix: avoid merge conflict
This commit is contained in:
KirCute_ECT
2024-12-25 21:11:36 +08:00
committed by GitHub
parent bb2aec20e4
commit 6aaf5975c6
3 changed files with 11 additions and 13 deletions

View File

@ -29,10 +29,6 @@ type FileUploadProxy struct {
func uploadAuth(ctx context.Context, path string) error {
user := ctx.Value("user").(*model.User)
path, err := user.JoinPath(path)
if err != nil {
return err
}
meta, err := op.GetNearestMeta(stdpath.Dir(path))
if err != nil {
if !errors.Is(errors.Cause(err), errs.MetaNotFound) {