Community Support for OpenDocMan (Deprecated)
Can't view office file - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html)
+--- Thread: Can't view office file (/thread-355.html)



Can't view office file - shinju - 12-30-2010

Hai all,

I'm new using opendocman for document management, i currently testing this. when i upload file ms office like msword, i try to view the doc it's opened but not converted to msdoc file. it's give me this output :

ÐÏࡱá;þÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿÿÿÿÿþÿÿÿ

is there any configuration that i missed?

Sorry for my poor english

Thanks,
Shinju


Re: Can't view office file - Stephen - 12-31-2010

Could you try our demo server and se if the issue exists there? <!-- m --><a class="postlink" href="http://www.opendocman.com/demo/">http://www.opendocman.com/demo/</a><!-- m -->


Re: Can't view office file - shinju - 01-02-2011

Hi Stephen,
Thanks, for the reply. I tried in the demo server and there is no issue like mine.
Just wondering is there any configuration that i miss while doing installation. I just change the configuration in config.php

Can u help me to find out the problem?

Oh ya, Happy New Year.

Thanks,
Shinju


Re: Can't view office file - Stephen - 01-02-2011

It seems like it might be a server configuration issue, especially if it works on our demo server but not on your server. Have you checked the web server error logs?


Re: Can't view office file - shinju - 01-02-2011

Hi Stephen,

I do fresh installation and now i can view file office, but i can't view file office 2007 with extension *.docx.
I try to add mimetype manualy in config.php but after i add the command, the web can't be display just give me a blank page.
How to add mimetype in the config? i also try the command in mimetype.php and not work either.

Thanks,
Shinju


Re: Can't view office file - Stephen - 01-03-2011

When you try to add a file that is not allowed it will usually show the mimetype information in the blue status bar on the right side. You would then add that mimetype into the allowedFiletypes setting in the config.


Re: Can't view office file - shinju - 01-03-2011

Hi Stephen,

I have enabled the docx and xlsx mimetype in the config.php file, but whenever I attempt to view, or download, the file, from my repository, It downloads as .zip.
any ideas?

Here is view link when i hover it :
view_file.php?submit=view&id=11&mimetype=

seems there's no mimetypes set for that.

Thanks,
Shinju


Re: Can't view office file - shinju - 01-03-2011

hi,

I already find out how to add new mimetypes like docx, xlsx, pptx,
Add mime types at config.php then after that u must add the following line at /etc/mime.types :
application/vnd.openxmlformats docx pptx xlsx

then restart your apache service.

if u're not add them, when u view or download the file the extension will change to .zip

Regards,
Shinju