filer: upload also set file size

ensure works same as fuse mount
This commit is contained in:
Chris Lu 2020-09-25 12:02:06 -07:00
parent 4929d0634e
commit 41be7a4c8f

View file

@ -167,6 +167,7 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa
TtlSec: ttlSec,
Mime: contentType,
Md5: md5bytes,
FileSize: uint64(chunkOffset),
},
Chunks: fileChunks,
}