Skip to Content
0

Opening MS office attachments from Fiori in Internet Explorer

Nov 16, 2016 at 08:56 AM

110

avatar image
Former Member

Hello everyone,

We have developed our own attachments handler for use in Fiori apps. The upload process is working everywhere and the download works in Chrome for all files and internet explorer for everything except office document types (docx, xlsx etc).

When you go to a URL for a word document in IE, it asks if you want to open it or download it. If you choose download, all is well, if you choose open, IE passes the request off to the relevant office application. When this happens, "Microsoft Office Protocol Discovery" kicks in, and office sends an OPTIONS request to the gateway server. This request causes an authentication window to popup.

If the user cancels the popup, the downloaded attachment opens fine, but I'd really like to remove the popup. Has anyone encountered this before?

Details on what office is doing can be found here:

Microsoft article

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Nov 16, 2016 at 10:18 AM
0

We have resolved this issue by changing the Content-Disposition HTTP header in the OData ABAP.

We were using:

Content-Disposition=inline; filename="<my file name>"

We have change it to:

Content-Disposition=Attachment; filename="<my file name>"

This prevents the file opening automatically, but that's fine for our use case.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jun 15, 2017 at 04:45 AM
0

Hello Tom,

I am using Content-Disposition=inline; filename="<my file name>" in order to open inline. But office document types are coming as blank on UI5 app screen whereas .pdf files open properly as inline attachments. Do you have any suggestion for office documents as how to open those content.

Thanks

Share
10 |10000 characters needed characters left characters exceeded