Community Support for OpenDocMan (Deprecated)

Full Version: MHTML File Support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
cherrymount
2007-07-15 23:48:28 PDT
I have added HTML files to opendocman - and everything has worked fine. I can checkin, check out, view etc.

When I attempt to add MHTML (.mht) files however - I get a problem:
The files cannot be viewed.

The files can be checked in ok. I updated my config_local.php file to include mhtml files no problem..

($GLOBALS['allowedFileTypes'] = array( 'message/rfc822')

I checked the file into the system. the file looked fine in IE6 before adding it to opendocman. I saved it to my local disk from opendocman. I reopened the file usinf IE6 - and it's blank.

Can anybody help????
Please


jonathanwminer
2007-07-16 06:01:47 PDT
Hi -

You might want to check the mimetypes.php file to see if "mht" is defined.

If you have secure URLs turned off, when you mouse-over the "View" icon, your browser should display the URL (I know Firefox does, not sure about IE) and you should see "mimetype={something}" at the end of the URL.


cherrymount
2007-07-18 20:00:48 PDT
Thanks for the reply Jonathan

I have added the following line to mimetypes.php
$mimetypes['mht'] = 'text/mhtml';

I've restarted apache and tried to add a new mhtml file.It hasn't made any differnce.

Anybody got anything else??


jonathanwminer
2007-07-19 09:53:40 PDT
For debugging purposes, make sure that secure URLs are turned off.
When you view the mhtml file, what URL is displayed in your browser?