<div dir="ltr">I can&#39;t help but wonder if it wouldn&#39;t be better to find offending ob_start() and remove that instead.  Would you open a Trac ticket for this issue?</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jan 18, 2013 at 12:10 AM, Juan C. Dulanto <span dir="ltr">&lt;<a href="mailto:juan@compuxpert.com" target="_blank">juan@compuxpert.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">In order to save someone else’s headaches, I will write up about a problem that has not been well documented:<br>
Issues when attempting to open documents on a Windows based vTiger CRM.<u></u><u></u></p>
<p class="MsoNormal">I had successfully saved documents to our vTiger server, and I could open them – without any issues – from the storage folder, but I could not open them using any browser. (The exception was with pdf files: They could open via folder or
 via browser)<u></u><u></u></p>
<p class="MsoNormal">If I try to open a .doc file I would get the following screen:<br>
<img width="422" height="313" src="cid:image001.png@01CDF510.2B6084C0"><u></u><u></u></p>
<p class="MsoNormal"><br>
If I tried to open a .docx I would get:<br>
<img width="405" height="106" src="cid:image002.png@01CDF510.2B6084C0"><u></u><u></u></p>
<p class="MsoNormal"><img width="672" height="127" src="cid:image003.png@01CDF510.2B6084C0"><u></u><u></u></p>
<p class="MsoNormal">If I tried to open a jpg I would get:<br>
<img width="649" height="502" src="cid:image004.png@01CDF510.2B6084C0"><u></u><u></u></p>
<p class="MsoNormal">And same with xls, tif, mdi, mht, etc.<u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#e46c0a">The solution</span></b><span style="color:#e46c0a">
</span>was to modify \modules\uploads\downloadfile.php around line 45 and include 4 lines of code to clean the buffer before loading any new documents:<u></u><u></u></p>
<p class="MsoNormal"><img width="696" height="585" src="cid:image005.png@01CDF510.2B6084C0"><u></u><u></u></p>
<p class="MsoNormal">Now ALL documents are able to open just fine from the browser.
<u></u><u></u></p>
<p class="MsoNormal">I hope this mod helps you too.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>