From 0b192917f824e90ff7e9fc35080973f96c04fb45 Mon Sep 17 00:00:00 2001 From: yanyiwu Date: Tue, 6 Jan 2015 19:31:26 +0800 Subject: [PATCH] fix bug about the collection in volume is wrong when curl -F "file=@/tmp/test.jpg" "localhost:9333/submit?collection=picture" --- go/weed/weed_server/common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/weed/weed_server/common.go b/go/weed/weed_server/common.go index 5c782c091..38d58bdbb 100644 --- a/go/weed/weed_server/common.go +++ b/go/weed/weed_server/common.go @@ -87,6 +87,7 @@ func submitForClientHandler(w http.ResponseWriter, r *http.Request, masterUrl st } debug("assigning file id for", fname) + r.ParseForm() assignResult, ae := operation.Assign(masterUrl, 1, r.FormValue("replication"), r.FormValue("collection"), r.FormValue("ttl")) if ae != nil { writeJsonError(w, r, ae)