Yab\Quarx\Services\FileService::fileAsDownload PHP Method

fileAsDownload() public static method

Provides a URL for the file as a download.
public static fileAsDownload ( string $fileName, string $realFileName ) : string
$fileName string File name
$realFileName string Real file name
return string
    public static function fileAsDownload($fileName, $realFileName)
    {
        return url('public-download/' . CryptoServiceForFiles::url_encode($fileName) . '/' . CryptoServiceForFiles::url_encode($realFileName));
    }