Hosting a file in Decisions, download file by URL
Comments
-
[color=#141414]I am looking to see if there is any way we can host an image on decisions that we can use the URL of to call within a CSS class? Would this be possible? [/color]
[i]-[/i]
[i]edited by Brendan@decisions.com on 9/20/2019[/i] -
Hi Leo,
Yes, Decisions can host a file so that a URL can be called which references the file.
This can either be done by adding a file reference (because FileReference type contains a data member called "FileURL"), or by adding a Document object to the portal and running the "Get Document URL" action from the context menu of the Document object (see attached image. See here for how to add documents to the portal).
Ive attached an export that demonstrates acquiring a URL from file references. In the example, you can either upload a file or specify a local file path, and the following form will display the generated URL.
This example simply utilizes one of two steps, either the "Load From File Data" or "Load From Path" steps.
"Load From File Data" takes an object of type FileData and outputs an object of type FileReference, which contains the "FileURL" data member.
"Load From Path" takes a Windows file path and outputs an object of type FileReference as well (Note: the file extension must be specified or an error will be thrown).
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions