public function getReadableFilesize()
    {
        $size = $this->filesize;
        if ($size < 1) {
            return $size;
        }

        if ($size < 1024) {
            return $size.'b';
        } else {
            $help = $size / 1024;
            if ($help < 1024) {
                return round($help, 1).'kb';
            } else {
                return round(($help / 1024), 1).'mb';
            }
        }
    }
public function getReadableFilesize()
    {
        $size = $this->filesize;
        if ($size < 1) {
            return $size;
        }

        if ($size < 1024) {
            return $size.'b';
        } else {
            $help = $size / 1024;
            if ($help < 1024) {
                return round($help, 1).'kb';
            } else {
                return round(($help / 1024), 1).'mb';
            }
        }
    }
public function getReadableFilesize ( ) { $ size = $ this -> filesize ; if ( $ size < 1 ) { return $ size ; } if ( $ size < 1024 ) { return $ size . 'b' ; } else { $ help = $ size / 1024 ; if ( $ help < 1024 ) { return round ( $ help , 1 ) . 'kb' ; } else { return round ( ( $ help / 1024 ) , 1 ) . 'mb' ; } } }
Get filesize with filesize extension.

@JMS\VirtualProperty
@JMS\SerializedName("readable_filesize")

@return int|string
Get filesize with filesize extension .