IBM i Access for Web

Frequently asked questions

Tips and FAQs

Forcing a Save As window when using Internet Explorer

When using Microsoft Internet Explorer and any of the iSeries Access for Web functions to download a file to the browser, many times Internet Explorer will display the file's content in the browser without offering an opportunity to just save the file. Basically, Internet Explorer sniffs the data, and for many file types decides it is capable of displaying the data. Many users do not want this behavior, and would prefer to save the file immediately.

To get around this issue, starting with V5R3 5722XH2 PTF SI18964, iSeries Access for Web can now optionally write a HTTP header that forces Internet Explorer to display a File Save As window. The HTTP header being written is a Content-Disposition header. The Content-Disposition header that can be optionally written is controlled by creating a disposition.properties file. Different Content-Disposition headers can be written based on the file content-type (MIME-type) being downloaded.

iSeries Access for Web uses the file extension to determine the file content-type (MIME-type) to be sent to the browser. The file content-type is used by the browser to determine how best to render the information. For more information on controlling the MIME-type based on the file extension, see the iSeries Access for Web File considerations article in the iSeries V5R3 Information Center. This article covers how to map file extensions to different MIME-types.

Once the MIME-type mapping setup has been done, a disposition.properties file needs to be created in the iSeries Access for Web UserData tree. For most of the supported web serving environments, the iSeries Access for Web UserData tree is:

/QIBM/UserData/Access/Web2/application_server/instance_name/server_name/config

Replace application_server, instance_name, and server_name with the unique values on your system.

The disposition.properties file needs to contain entries that specify what Content-Disposition header value should be written based on the MIME-type of the file being downloaded using iSeries Access for Web.

The following properties files show an example of what would be required to force a File Save As window when downloading a file with a .TXT extension.

The extensions.properties file needs to contain:
txt=text/plain

The disposition.properties file needs to contain:
text/plain=attachment

Changes to the properties file will take effect within a couple of minutes of the files being changed. The changes do not take effect immediately unless the web application system is stopped and restarted.

Contact IBM

Advantages

Companies embracing Smarter Computing are implementing IT infrastructure based on the IBM Power Systems platform that is designed for data, tuned to the task and managed with cloud technologies. With Power Systems, businesses can outpace their competitors by delivering services faster, differentiate their offerings by delivering higher quality services, and turn operational cost into investment opportunity by delivering services with superior economics.

Hardware

Power Systems hardware provides the foundation for designing workload optimized systems in conjunction with software and expert domain knowledge. Power servers and blades are modular and scalable and designed from the chip through the software stack to help deliver new levels of business performance.

Operating systems

Power servers deliver flexibility and choice of operating systems to enable your business to select the best applications for your business needs. Whether running 1, 2, or all 3 - coupled with PowerVM, they maximize the benefit of Power Systems in your business.

System software

IBM's integrated approach to developing Systems and Systems Software stacks together delivers maximum utilization, availability, and flexibility helping you deliver new advantages in your business.

Solutions

IBM and IBM Business Partner solutions exploit key benefits in Power Systems that help you deliver new capabilities and new competitive advantages to your business.

Migrate to Power

Over the last five years thousands of clients have migrated to POWER. Learn how Power Systems has helped them improve their business performance, reduce risk, and establish a more secure future.

Additional information