FileToBrowserProcess

Top  Previous  Next

FileToBrowserProcess can be used to transfer the server files of different type to the requesting browser.

FileToBrowserProcess

Properties

 
File Name (Accepts MScript)

The name of the file on the server to transfer to the browser. It can be the name of a permanent file or a pool variable or a process field name that stores the name of the temporary file created by one of the preceding processes.
 

Examples:

Definition

Description

WEB-INF/reports/products.pdf 

The input PDF file is permanent and it is defined relative to the web application root.

c:\reports\expenses.xls

The input PDF file is permanent.

v:products

The input PDF file is temporary and its name is stored in the pool variable products.

f:order

The input PDF file is temporary and its name is stored process record field order.

 
Content Type: (Accepts MScript)

One of the listed values can be selected or a new type can be specified in mime-type form.

Examples:

1. PDF
audio/x-wav
image/svg+xml

 

Content Disposition (Accepts MScript)

The value defined with this property defines how the document transferred is treated by the browser. If the objective is to open the document inside the browser area then "inline;" should be defined as the value. If the value is specified in attachment;filename="x" form then the user is asked what to do the with the transferred document; "Open" or "Save As". The file name that is prompted for saving can be defined with filename="" definition.

Example: attachment;filename="report.pdf"

Allow Caching (Accepts MScript)

If the browser is connected to the web application with https protocol (Secure connection) this valued should be set to true. This way the browser the decodes the document and caches it so that the program associated with the specified content type can open the decoded and cached file without any problem.