Skip to content

Kirby 4.5.0

$file->previewUrl()

Simplified File URL that uses the parent Page URL and the filename as a more stable alternative for the media URLs.

$file->previewUrl(): string|null

Return type

string|null

Parent class

Kirby\Cms\File