Text file opens in browser instead of downloads

Most if not all browsers will simply download files with that type. If I instead set the html link target option to be “_blank”, the script will open up in a new $http_stat_code = readfile_if_modified($filename, array('Content-Type: text/xml'));

Asset direct link is downloading not open asset on new tab the file is download but It should open on browser windows not do download direct. for the possible reason for the assets being downloaded rather than being displayed in the browser in AEM 6.4 . I tried to add a robots.txt and it is being downloaded yet.

Most if not all browsers will simply download files with that type. If I instead set the html link target option to be “_blank”, the script will open up in a new $http_stat_code = readfile_if_modified($filename, array('Content-Type: text/xml'));

17 Jun 2013 A lot of developers are experiencing the same problem: while all other browsers display your latest web creation perfectly, Chrome just  This article will illustrate how to create and download a text file to the user's to download files, instead they will always open up in the browser as expected. 15 Jan 2018 When trying to view e-journal articles or files on Blackboard Learn, or from other sources, some files may open inside a browser window but  In this tutorial you'll learn how to download files like images, word or PDF documents, EXE or ZIP It will only open the file in your browser. Simple Image Gallery