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.

Issue

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.

Symptoms

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.

Resolution

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.