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

  • 16 February 2021
  • 0 replies

Userlevel 4
Badge +17

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


K2 Five
K2 Mobile
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 FilesK2K2 smartforms RuntimeWeb.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.

0 replies

Be the first to reply!