don't lose file size during rename

Don't set filesize to "0" during rename of shared files.

fix #8428 

cc @PVince81