{"id":761,"date":"2012-03-15T11:10:14","date_gmt":"2012-03-15T11:10:14","guid":{"rendered":"http:\/\/www.websitedesignwebsitedevelopment.com\/?p=761"},"modified":"2014-03-19T09:13:54","modified_gmt":"2014-03-19T09:13:54","slug":"download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader","status":"publish","type":"post","link":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/","title":{"rendered":"Download file problem due to version incompatibility of IE &#038; Adobe Reader"},"content":{"rendered":"<h2>Download file problem due to version incompatibility of IE &amp; Adobe Reader<\/h2>\n<p>I have reviewed &amp; updated the code. In fact when we throw the file content in page, it has two options<br \/>\na) Will open PDF in the browser<br \/>\nb) Will start download immediately<\/p>\n<p>Before correction in PHP script, you need to check the followings<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.websitedesignwebsitedevelopment.com\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_needs_to_be_checked.png\" alt=\"\" \/><\/p>\n<p>If your problem is not resolved then have a look on this<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.websitedesignwebsitedevelopment.com\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_suggested_steps.png\" alt=\"\" \/><\/p>\n<p>Check your content type<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.websitedesignwebsitedevelopment.com\/wp-content\/uploads\/2012\/03\/mime_content_type_function.png\" alt=\"\" \/><\/p>\n<p>Finally check your php code which you are using to download the files<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.websitedesignwebsitedevelopment.com\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_before_fixed.png\" alt=\"\" \/><\/p>\n<p>Make these corrections in your php script<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.websitedesignwebsitedevelopment.com\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png\" alt=\"\" \/><\/p>\n<hr \/>\n<p><strong>PHP Script:<\/strong><\/p>\n<p>$type = mime_content_type($filename);<\/p>\n<p>header(&#8220;Pragma: public&#8221;);<br \/>\nheader(&#8220;Expires: 0&#8221;);<br \/>\nheader(&#8220;Pragma: no-cache&#8221;);<br \/>\nheader(&#8220;Charset: null&#8221;);<br \/>\nheader(&#8220;Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0&#8221;);<br \/>\nheader(&#8220;Content-Type: application\/force-download&#8221;);<br \/>\nheader(&#8220;Content-Type: application\/octet-stream&#8221;);<br \/>\nheader(&#8220;Content-Type: application\/download&#8221;);<br \/>\nheader(&#8216;Content-disposition: attachment; filename=&#8217; . str_replace(&#8216; &#8216;,&#8217;-&#8216;, file_parts($filename,&#8217;name&#8217;)));<br \/>\nheader(&#8220;Content-Type: $type&#8221;);<br \/>\nheader(&#8220;Content-Transfer-Encoding: binary&#8221;);<br \/>\nheader(&#8216;Content-Length: &#8216; . filesize($filename));<br \/>\n@readfile($filename);<br \/>\nexit(0);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download file problem due to version incompatibility of IE &amp; Adobe Reader I have reviewed &amp; updated the code. In fact when we throw the file content in page, it has two options a) Will open PDF in the browser b) Will start download immediately Before correction in PHP script, you need to check the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":766,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[41],"tags":[],"class_list":["post-761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-files-management"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Download file problem due to version incompatibility of IE &amp; Adobe Reader<\/title>\n<meta name=\"description\" content=\"Download file problem due to version incompatibility of IE &amp; Adobe Reader\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Download file problem due to version incompatibility of IE &amp; Adobe Reader\" \/>\n<meta property=\"og:description\" content=\"Download file problem due to version incompatibility of IE &amp; Adobe Reader\" \/>\n<meta property=\"og:url\" content=\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/\" \/>\n<meta property=\"og:site_name\" content=\"AndroidBubble Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-15T11:10:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-03-19T09:13:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png\" \/>\n\t<meta property=\"og:image:width\" content=\"758\" \/>\n\t<meta property=\"og:image:height\" content=\"290\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Fahad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fahad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/\"},\"author\":{\"name\":\"Fahad\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"headline\":\"Download file problem due to version incompatibility of IE &#038; Adobe Reader\",\"datePublished\":\"2012-03-15T11:10:14+00:00\",\"dateModified\":\"2014-03-19T09:13:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/\"},\"wordCount\":164,\"image\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png\",\"articleSection\":[\"Files Management\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/\",\"url\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/\",\"name\":\"Download file problem due to version incompatibility of IE & Adobe Reader\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png\",\"datePublished\":\"2012-03-15T11:10:14+00:00\",\"dateModified\":\"2014-03-19T09:13:54+00:00\",\"author\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"description\":\"Download file problem due to version incompatibility of IE & Adobe Reader\",\"breadcrumb\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage\",\"url\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png\",\"contentUrl\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png\",\"width\":\"758\",\"height\":\"290\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/androidbubble.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website Development\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Files Management\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/files-management\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Download file problem due to version incompatibility of IE &#038; Adobe Reader\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\",\"url\":\"https:\/\/androidbubble.com\/blog\/\",\"name\":\"AndroidBubble Blog\",\"description\":\"Articles &amp; Posts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/androidbubble.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\",\"name\":\"Fahad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"caption\":\"Fahad\"},\"sameAs\":[\"http:\/\/www.androidbubbles.com\/\",\"https:\/\/x.com\/phpFlex\"],\"url\":\"https:\/\/androidbubble.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Download file problem due to version incompatibility of IE & Adobe Reader","description":"Download file problem due to version incompatibility of IE & Adobe Reader","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/","og_locale":"en_US","og_type":"article","og_title":"Download file problem due to version incompatibility of IE & Adobe Reader","og_description":"Download file problem due to version incompatibility of IE & Adobe Reader","og_url":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/","og_site_name":"AndroidBubble Blog","article_publisher":"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453","article_published_time":"2012-03-15T11:10:14+00:00","article_modified_time":"2014-03-19T09:13:54+00:00","og_image":[{"width":758,"height":290,"url":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png","type":"image\/png"}],"author":"Fahad","twitter_misc":{"Written by":"Fahad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#article","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/"},"author":{"name":"Fahad","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"headline":"Download file problem due to version incompatibility of IE &#038; Adobe Reader","datePublished":"2012-03-15T11:10:14+00:00","dateModified":"2014-03-19T09:13:54+00:00","mainEntityOfPage":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/"},"wordCount":164,"image":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage"},"thumbnailUrl":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png","articleSection":["Files Management"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/","url":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/","name":"Download file problem due to version incompatibility of IE & Adobe Reader","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage"},"image":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage"},"thumbnailUrl":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png","datePublished":"2012-03-15T11:10:14+00:00","dateModified":"2014-03-19T09:13:54+00:00","author":{"@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"description":"Download file problem due to version incompatibility of IE & Adobe Reader","breadcrumb":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#primaryimage","url":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png","contentUrl":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png","width":"758","height":"290"},{"@type":"BreadcrumbList","@id":"https:\/\/androidbubble.com\/blog\/website-development\/files-management\/download-file-problem-due-to-version-incompatibility-of-ie-adobe-reader\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/androidbubble.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website Development","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/"},{"@type":"ListItem","position":3,"name":"Files Management","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/files-management\/"},{"@type":"ListItem","position":4,"name":"Download file problem due to version incompatibility of IE &#038; Adobe Reader"}]},{"@type":"WebSite","@id":"https:\/\/androidbubble.com\/blog\/#website","url":"https:\/\/androidbubble.com\/blog\/","name":"AndroidBubble Blog","description":"Articles &amp; Posts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/androidbubble.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7","name":"Fahad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","caption":"Fahad"},"sameAs":["http:\/\/www.androidbubbles.com\/","https:\/\/x.com\/phpFlex"],"url":"https:\/\/androidbubble.com\/blog\/author\/admin\/"}]}},"views":667,"jetpack_featured_media_url":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2012\/03\/download_file_ie_issue_fixed.png","_links":{"self":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/comments?post=761"}],"version-history":[{"count":4,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/761\/revisions"}],"predecessor-version":[{"id":768,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/761\/revisions\/768"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/media\/766"}],"wp:attachment":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/media?parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/categories?post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/tags?post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}