def pure downloadUrl(path: text): text
def pure downloadUrl(hash: text, name: text): text
Returns a URL that downloads a file, either by path in the file explorer or by
content hash and name.
path: file path in the Lokad file explorer.
hash: file hash.
name: filename suggested to the downloader.
Examples
show table "Download URLs" with
downloadUrl("/files/report.pdf") as "ByPath"
downloadUrl("4F7259333A6795C13F1AD9E900DAA7FE", "report.pdf") as "ByHash"
Output: two URL strings that trigger file downloads.
Remarks
The hash overload works even if the user does not have access to the file
explorer or the file is no longer present there. This function is not available
on try.lokad.com.