filestack/FilestackClient.php
public function download($url, $destination)
    {
        if (!$this->isUrl($url)) { // CommonMixin
            $url = $this->getCdnUrl($url);
        }

        // call CommonMixin function
        $result = $this->sendDownload($url, $destination, $this->security);

        return $result;
    }
public function download($url, $destination)
    {
        if (!$this->isUrl($url)) { // CommonMixin
            $url = $this->getCdnUrl($url);
        }

        // call CommonMixin function
        $result = $this->sendDownload($url, $destination, $this->security);

        return $result;
    }
public function download ( $ url , $ destination ) { if ( ! $ this -> isUrl ( $ url ) ) { // CommonMixin $ url = $ this -> getCdnUrl ( $ url ) ; } // call CommonMixin function $ result = $ this -> sendDownload ( $ url , $ destination , $ this -> security ) ; return $ result ; }
Download a file, saving it to specified destination

@param string            $url            Filestack file url or handle
@param string            $destination    destination filepath to save to, can
be foldername (defaults to stored filename)

@throws FilestackException   if API call fails

@return bool (true = download success, false = failed)
Download a file saving it to specified destination