From 320637dc7a319fb60e53027db3288a8c93d4cbc2 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 23 Feb 2022 15:34:42 -0800 Subject: [PATCH] use "mv.from" for moving files --- weed/server/filer_server_handlers_write.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/server/filer_server_handlers_write.go b/weed/server/filer_server_handlers_write.go index e587f72ba..3bbae8197 100644 --- a/weed/server/filer_server_handlers_write.go +++ b/weed/server/filer_server_handlers_write.go @@ -79,7 +79,7 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request, conte return } - if query.Has("from") { + if query.Has("mv.from") { fs.move(ctx, w, r, so) } else { fs.autoChunk(ctx, w, r, contentLength, so) @@ -90,7 +90,7 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request, conte } func (fs *FilerServer) move(ctx context.Context, w http.ResponseWriter, r *http.Request, so *operation.StorageOption) { - src := r.URL.Query().Get("from") + src := r.URL.Query().Get("mv.from") dst := r.URL.Path glog.V(2).Infof("FilerServer.move %v to %v", src, dst)