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 wrappedfileWrapped file record
RECORD optionsOptional record with extra settings
allowanyextensionDo not strip unknown file extentions
baseurlembedThe returned URL should serve itself without a content-disposition: attachment
filenameFilename to use in the URL
Return value
STRINGLink to the file. Empty string if a default record is passed