File Viewer (deprecated)

The File Viewer control (now contained in the Content Management Toolkit) allows users to view files that have been uploaded using either the BPM File Dropzone or BPM File Uploader, it should be used in conjunction with the BPM File List.

Like almost all SPARK controls, you can trigger events that are fired when the user interacts with the control (see the Event and Methods sections below and the Event Handling article for more information).

The File Viewer relies on native capabilities of the web browser to display the content of each file type. If the MIME type is unsupported, the browser may attempt to download the file that the user is trying to view.


Width Width in %, px, or em

Height Height in %, px, or em

Controls Placement None, Top, Bottom


This example uses a BPM File Dropzone with a BPM File List and File Viewer.

The configuration options for the File Viewer...

The BPM File List has the File Viewer setUrl method in its On File Clicked Event, once the file is uploaded and is displayed in the BPM File List, the user can view the file by clicking the file name in the BPM File List and the File Viewer will display the contents of the file.

This is the result before the uploaded file has been clicked in the BPM File List...

After the file has been clicked...


With the File Viewer control, there is 1 type of event handler:

  • On Load When the page loads

You can use JavaScript logic to affect the effects of the control, depending on the event. More information on using these controls can be found in the Event Handling article.


For detailed information on the available methods for this control, access the JS Doc file.

Related Article(s)

BPM File Uploader

BPM File List

BPM File Dropzone


  • Authors: Courtney Silva
  • Date Created: June 18, 2015
  • Date Modified: July 27, 2015
Was this article helpful?
0 out of 0 found this helpful