Files


$file Properties

$file->httpUrl

Introduced in Version 2.3

Description

Return the web accessible URL (with schema and hostname) to this Pagefile

While the normal url property returns a local url:

/site/assets/files/1234/myfile.pdf

httpUrl returns a full url that includes schema and hostname:

http://www.mysite.com/site/assets/files/1234/myfile.pdf

Related

Post Comment