public function save()
    {
        if (!$this->url)
        {
            $response = $this->upload();
            $this->url = $response['url'];
            $this->name = $response['name'];
        }

        return true;
    }
public function save()
    {
        if (!$this->url)
        {
            $response = $this->upload();
            $this->url = $response['url'];
            $this->name = $response['name'];
        }

        return true;
    }
public function save ( ) { if ( ! $ this -> url ) { $ response = $ this -> upload ( ) ; $ this -> url = $ response [ 'url' ] ; $ this -> name = $ response [ 'name' ] ; } return true ; }
Uploads the file contents to Avos, if not saved.

@return bool
Uploads the file contents to Avos if not saved .