Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is for application designers who need the ability to download files and/or access them programmatically.

Within your application screens, you may use images and files that have been uploaded onto the PhixFlow server. For example,

  • allowing users to download a file.
  • displaying an image based on expression logic. For example,  display a user image based on the logged in user.


Your administrator can configure should have configured the Tomcat webserver to see specific directories by creating soft links from a source to a target. see Configuring Soft Links Between PhixFlow and Tomcat. See Install the PhixFlow Webapp. Strictly speaking this is an optional step, but it part of the recommended installation for PhixFlow. If you are not sure, please talk to your system administrator.

Operating SystemSource (Tomcat)
which points to → 
Target (Directory)Example Files
Linux<path>/tomcat/webapps/phixflow/datalink

<path>/phixflow/data/phixflow/datalink/

Snapshot.jpg

MyData.xlsx

Windows<path>\tomcat\webapps\phixflow\datalink<path>/phixflow/data/phixflow/datalink/

To access the files use the soft link:

  • To create a download, create an action which opens the URL: "datalink/MyData.xlsx"
    • Note, not all file types will invoke a download, for example a PDF will simply open in a new browser tab.

  • For display, an image or PDF can be embedded in a URL component using the value: url("https:datalink/Snapshot.jpg")
  • For display, images can be applied to areas by setting the CSS property background-image to: "datalink/Snapshot.jpg"

...

Step1: Setup the soft link

See Configuring Soft Links Between PhixFlow and Tomcat for the commands

Example locations are shown below:

Operating SystemSource (Tomcat)Target (Directory)
Linux<path>/tomcat/webapps/phixflow/datalink

<path>/phixflow/data/datalink/

Windows<path>\tomcat\webapps\phixflow\datalink<path>/phixflow/data/datalink/

...