Automatic downloads of unsupported Documents in the document viewer

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.

Sign In or Register to comment.