support output filesize data for attachment on framework level

Signed-off-by: TomWu <phperwuhan@gmail.com>