diff --git a/weed/server/volume_server_handlers_write.go b/weed/server/volume_server_handlers_write.go index 790d109cf..43936206e 100644 --- a/weed/server/volume_server_handlers_write.go +++ b/weed/server/volume_server_handlers_write.go @@ -44,7 +44,7 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) { if needle.HasName() { ret.Name = string(needle.Name) } - ret.Size = size + ret.Size = needle.DataSize setEtag(w, needle.Etag()) writeJsonQuiet(w, r, httpStatus, ret) }