Feng Forum

Support => Feng Office 1 => Older versions => 1.3 final => : markoan April 22, 2009, 09:17:36 PM

: Document downloads result in binary text inside browser, no download file
: markoan April 22, 2009, 09:17:36 PM
Hi, we have been workin with version 1.3.1 of OpenGoo for a week and have uploaded several documents.
Now that we have tryed to download some of them we find that we are unable to download. Clicking on the download link results in the browser displaying garbled text that I assume is the binary content of the document.
Is this a server issue or something related to OpenGoo? How can I tell the browser that it is actually a file that needs to be downloaded?
Which configuration files should I check?

Thanks
: Re: Document downloads result in binary text inside browser, no download file
: ignacio April 24, 2009, 02:16:49 PM
What type of document is it? What about other types of documents?
: Re: Document downloads result in binary text inside browser, no download file
: markoan April 24, 2009, 05:55:59 PM
Hi ignacio.

It is the same for all documents. I have tested it with xlsx, pdf and doc.
: Re: Document downloads result in binary text inside browser, no download file
: Pet April 25, 2009, 02:13:56 AM
Usually it is the browser that should know.  You shouldn't have a mime type set for this on the server.

Have you tried downloading it using a different browser? What browser are you using?

cheers
: Re: Document downloads result in binary text inside browser, no download file
: markoan May 20, 2009, 09:09:15 PM
Solved the problem.
We are using OpenGoo in spanish.
Turns out that some files had UTF-8 characters and the files where encoded as UTF-8 with BOM (some encoded header characters).
I just needed to edit these files and convert to UTF-8 without BOM.
It seems the BOM header gets sent to the browser before PHP finishes parsing the code and this messes things up.
I hope this helps in case someone runs into the same problem.
: Re: Document downloads result in binary text inside browser, no download file
: Pet May 20, 2009, 10:42:17 PM
Good to hear, thanks for posting the solution!