diff --git a/weed/storage/needle.go b/weed/storage/needle.go index 9d47cc5f9..5863065a9 100644 --- a/weed/storage/needle.go +++ b/weed/storage/needle.go @@ -66,6 +66,7 @@ func ParseUpload(r *http.Request) ( mimeType = r.Header.Get("Content-Type") fileName = "" data, e = ioutil.ReadAll(r.Body) + originalDataSize = len(data) } if e != nil { return