FileUrl

The FileUrl() function returns the URL of a file.

Optionally - with the second parameter includeDomain set to true - it will return the URL including the full domain so it can be used externally as full absolute path.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

FileUrl(file)

FileUrl([PngImageFile]) ๐Ÿ‘Result: "/static/files/32655/Logo-WEM.png"

FileUrl(unknownfile) ๐Ÿ‘ŽResult: unknown

FileUrl(file, includeDomain)

FileUrl([PngImageFile], true) ๐Ÿ‘Result: "https://portal.staging.wem.io/static/files/32655/Logo-WEM.png"

FileUrl([PngImageFile], false) ๐Ÿ‘Result: "/static/files/32655/Logo-WEM.png"

FileUrl(unknownfile, unknownboolean) ๐Ÿ‘ŽResult: unknown

Parameters

Name
Type
Required
Description

file

file

โ˜‘๏ธ

the file of which the URL will be returned

includeDomain

boolean

indicate whether or not to include the full domain (default false)

Last updated

Was this helpful?