Automatic downloads of unsupported Documents in the document viewer

in Forms
When we try to use the Document Viewer to open unsupported file formats (like Excel files), it automatically downloads the file instead of showing an error. Is there a way to disable this behavior? We’re fine with the viewer only supporting certain file types, but we’d prefer it to display an error message instead of triggering a download.
Comments
-
The Document Viewer is limited to certain file types (.txt, .html, .pdf, .css, .png, .jpg). For unsupported formats, it will always trigger a download, and unfortunately there isn’t a built-in setting to change that behavior.
What you can do instead is use a flow workaround:
- Add an Upload Form where the user selects a file.
- Use a Rule to check whether the uploaded file’s extension is in the supported list.
- Route the flow based on the result:
- If supported → Show a form with the Document Viewer so the file can be previewed.
- If unsupported → Show a form with an error message (and optionally a popup message) instead of letting the file download.
This approach skips the Document Viewer completely if the file isn’t supported, which prevents the automatic download.
Howdy, Stranger!
Categories
- 4.4K All Categories
- 86 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 112 Rules
- 282 Administration
- 216 Portal
- 501 General Q & A
- 719 Forms
- 353 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 189 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 71 Repository
- 233 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions