From f8dbb03bddc64d04b70a2e052e8204d09fc9d397 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 23 Jan 2021 04:19:49 -0800 Subject: [PATCH] filer: append operation returns final file size --- weed/server/filer_server_handlers_write_autochunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index 237f121fe..ec1ecbe0d 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -204,7 +204,7 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa filerResult = &FilerPostResult{ Name: fileName, - Size: chunkOffset, + Size: int64(entry.FileSize), } if entry.Extended == nil {