A file can be provided to the user by a secure download link with optional one-time download and timeout. The file must be placed in a particular folder on the server filesystem. This folder can be read by XIH.GetAppSetting("TisScratchSpacePath") with the Formula operator (row-by-row) (5.0). The download link can be generated by XIH.GetDownloadUrl(...) also with the Formula operator.

Signature of XIH.GetDownloadUrl is string GetDownloadUrl(string fileName, bool absoluteUrl = false, bool oneTimeDownload = false, int availabilityPeriodMinutes = 1440)

  • fileName: Name of the file. This will also be the name of the downloaded file.
  • absoluteUrl: If true, creates link with hostname and port. If false, creates link relative to TIS Board. Default: false.
  • oneTimeDownload: If true, the file can be downloaded only once. Default: false.
  • availabilityPeriodMinutes: Validity of the link in minutes (default: 1 day)

Files in TisScratchSpacePath are removed by a cron job every midnight, independently of the the availabilityPeriod of any download link.


Possible scenario:

  1. Write the path of the download folder to a TIS Parameter:

    XIH.SetParam("Pfad Download folder", XIH.GetAppSetting("TisScratchSpacePath"))

  2. Use this parameter to write the file with a Pymeta script:




  3. Write HTML-Link with the Formula operator using XIH.GetDownloadUrl:


From BugFLEX-8954 - TISResults-Ordner für PDF-Export (AK SWR für PDF mit Attachments) nicht mehr verfügbar Closed