{"id":1596,"date":"2012-02-23T19:26:24","date_gmt":"2012-02-23T19:26:24","guid":{"rendered":"http:\/\/www.obieta.com\/?p=1596"},"modified":"2012-02-23T19:26:24","modified_gmt":"2012-02-23T19:26:24","slug":"sharepoint-2010-how-to-open-files-that-prompt-for-save-or-cancel","status":"publish","type":"post","link":"http:\/\/obieta.com\/?p=1596","title":{"rendered":"SharePoint 2010 \u2013 How to open files that prompt for Save or Cancel"},"content":{"rendered":"<p>This problem has arisen quite a bit since the release of SharePoint 2010. On the <a href=\"http:\/\/social.technet.microsoft.com\/Forums\/en-US\/category\/sharepoint2010\">MSDN forums<\/a>, there are many questions that seem new, but they always end up coming down to one setting. In SharePoint 2010, there is a new setting at the web application level called Browser File Handling (<strong>Fig. 1<\/strong>). You get to this setting with these steps:<\/p>\n<ul>\n<li>Central Admin &gt; Application Management &gt; Manage Web Applications<\/li>\n<li>Single-click the row of your web application<\/li>\n<li>Click General Settings in the ribbon<\/li>\n<li>Scroll down to Browser File Handling and select Permissive<\/li>\n<\/ul>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint211.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 1 \u2013 Browser File Handling settings<br \/><\/strong><\/p>\n<p>By default, this is set to Strict when creating a web application. However, this causes issues in many ways related to opening certain files from SharePoint. The most obvious example is with PDFs. When set to Strict, a PDF can only be Saved (downloaded), but in Permissive mode, the PDF can be opened directly. For instance, here are the different results when clicking on a PDF in a SharePoint 2010 Document Library:<\/p>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint221.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 2 \u2013 Opening a PDF in Strict mode<br \/><\/strong><\/p>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint231.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 3 \u2013 Opening a PDF in Permissive mode<br \/><\/strong><\/p>\n<p>As you can see, in Strict mode, I am prompted to Save or Cancel (<strong>Fig. 2<\/strong>). In Permissive mode, the PDF immediately opens without being prompted (<strong>Fig. 3<\/strong>), and in my case, my PDFs open in the browser by default (this is a setting you can change).<\/p>\n<p>Another way this issue manifests itself is when opening versions in an InfoPath form library. Someone posted this issue on the forums, and when I didn\u2019t experience the same issue, I immediately thought of Browser File Handling. Mine was already set to Permissive, so I switched it to Strict, and I experienced the same issue. Switching back to Permissive fixed it. Here is the scenario:<\/p>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint241.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 4 \u2013 Form Library set to Open in the Client (not browser)<br \/><\/strong><\/p>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint251.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 5 \u2013 Form Library set to Create major versions (max 2)<br \/><\/strong><\/p>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint261.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 5 \u2013 Check the Version History of an individual form and click on an older version to view it<br \/><\/strong><\/p>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint271.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 6 \u2013 Result of clicking an older version in Strict mode<br \/><\/strong><\/p>\n<p><img src=\"http:\/\/claytoncobb.files.wordpress.com\/2011\/01\/010711_0738_sharepoint281.png\" alt=\"\" \/><\/p>\n<p><strong>Figure 7 \u2013 Result of clicking an older version in Permissive mode<br \/><\/strong><\/p>\n<p>As you can see, when in Strict mode, the browser views this as a regular XML file (<strong>Fig. 6<\/strong>) and doesn\u2019t associate it with InfoPath like it does in Permissive mode (<strong>Fig. 7<\/strong>)<\/p>\n<p>Thanks to:<\/p>\n<p>http:\/\/claytoncobb.wordpress.com\/2011\/01\/07\/sharepoint-2010-how-to-open-files-that-prompt-for-save-or-cancel\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This problem has arisen quite a bit since the release of SharePoint 2010. On the MSDN forums, there are many questions that seem new, but they always end up coming down to one setting. In SharePoint 2010, there is a new setting at the web application level called Browser File Handling (Fig. 1). You get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,1],"tags":[],"_links":{"self":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1596"}],"collection":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1596"}],"version-history":[{"count":0,"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1596\/revisions"}],"wp:attachment":[{"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1596"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}