GetCachedFileLink (open)

Get the URL to a cached file

Syntax

LOADLIB "mod::system/lib/cache.whlib";

STRING FUNCTION GetCachedFileLink(RECORD wrappedfile, RECORD options)

Parameters

RECORD wrappedfile

Wrapped file record

RECORD options

Optional record with extra settings

allowanyextension

Do not strip unknown file extentions

baseurl
embed

The returned URL should serve itself without a content-disposition: attachment

filename

Filename to use in the URL

Return value

STRING

Link to the file. Empty string if a default record is passed