<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I'd say even better to find out what is
      getting in the way, there is probably some php warning or error
      message getting mixed with the output that should be attended.<br>
      <br>
      Joe<br>
      TSolucio<br>
      <br>
      <br>
      On 18/01/13 15:47, Adam Heinz wrote:<br>
    </div>
    <blockquote
cite="mid:CAKBdvM_H58d26HBco5OZwVZ66RGa6uEtzQ4K+5ZriUHm_MhH_Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">I can't help but wonder if it wouldn't be better to
        find offending ob_start() and remove that instead. &nbsp;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 moz-do-not-send="true"
              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 link="blue" vlink="purple" lang="EN-US">
              <div>
                <p class="MsoNormal">In order to save someone else&#8217;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.</p>
                <p class="MsoNormal">I had successfully saved documents
                  to our vTiger server, and I could open them &#8211; without
                  any issues &#8211; 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)</p>
                <p class="MsoNormal">If I try to open a .doc file I
                  would get the following screen:<br>
                  <br>
                </p>
                <p class="MsoNormal"><br>
                  If I tried to open a .docx I would get:<br>
                  <br>
                </p>
                <p class="MsoNormal"><br>
                </p>
                <p class="MsoNormal">If I tried to open a jpg I would
                  get:<br>
                  <br>
                </p>
                <p class="MsoNormal">And same with xls, tif, mdi, mht,
                  etc.</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:</p>
                <p class="MsoNormal"><br>
                </p>
                <p class="MsoNormal">Now ALL documents are able to open
                  just fine from the browser.
                </p>
                <p class="MsoNormal">I hope this mod helps you too.</p>
                <p class="MsoNormal">&nbsp;</p>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            <a moz-do-not-send="true" href="http://www.vtiger.com/"
              target="_blank">http://www.vtiger.com/</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">This body part will be downloaded on demand.</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>