No ratings

Can not open "non-picture" attachments in K2 Mobile app after recent update.


Can not open 'non-picture' attachments in K2 Mobile app after recent update

This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.


After updating to latest iOS K2 Mobile app, PDF attachments are no longer viewable when opening K2 forms from Forms section inside the app. This is affecting both iPhone/iPad devices.


In K2 Five, we added a new header for security reasons (X-Content-Type-Options=NoSniff). This caused the "web-view/Browser" to not be able to display the file in K2 mobile app, because the content type that gets returned in the response is wrong.


It is a known issue that will be addressed on the SmartForms end (not the mobile app). The workaround is to comment out this line in the Smartforms Runtime/Designer web.config

1. Backup the web.config for Smartforms Designer/Runtime web.config. "C:\Program Files\K2\K2 smartforms Runtime\Web.config"

2. Edit the web.config file and comment out this line <add name="X-Content-Type-Options" value="NoSniff"/>

3. Restart K2 service and test it again.

Labels: (1)
Version history
Last update:
‎05-19-2021 02:22 PM
Updated by: