BookStack\Attachment::getFileName PHP Method

getFileName() public method

Get the downloadable file name for this upload.
public getFileName ( ) : mixed | string
return mixed | string
    public function getFileName()
    {
        if (str_contains($this->name, '.')) {
            return $this->name;
        }
        return $this->name . '.' . $this->extension;
    }