|
OK. i will reply to my self :-) But for others, the problem is in administrator/components/com_joomdoc/libraries/joomdoc/filesystem/filesystem.php, where is condition (around line 462):
if (function_exists('mime_content_type')) { header('Content-Type: ' . mime_content_type($fullPath) . '; charset=UTF-8'); }
If the 'mime_content_type' function doesn't exists, there is not Content-Type header added to document, simply adding one else with fallback to 'octet-stream' solves this (for me):
if (function_exists('mime_content_type')) { header('Content-Type: ' . mime_content_type($fullPath) . '; charset=UTF-8'); } else { header('Content-type: octet-stream'); }
There exist the fileinfo functions in PHP too, but at my hosting they do not works...
Thanks to artio for great component (realy) and for great support (joke)...
|
Bad Content-Type
|
Posted 13 years, 7 months ago
by slavko
|
|
Finally, here is more Joomla's solution:
jimport('joomla.html.parameter.element');
it does exactly the same as previous one, only it is simple to understand
|
Can't access options
|
Posted 13 years, 7 months ago
by slavko
|
|
when trying to download some document, it can be downloaded, but the content-type is "text/html" and not by the real file type. by this, the browser is confised, when it gives the "open with" option.
I tried disable/enable SEF, without success.
Is here some configuration for it? I can fint nothing related...
Joomla 1.7.0 an JoomDoc 3.1.2
|
Bad Content-Type
|
Posted 13 years, 7 months ago
by slavko
|
|
in administrator/components/com_joomdoc/elements/icons.php file add before line16:
require_once(JPATH_SITE . DS . 'libraries' . DS . 'joomla' . DS . 'html' . DS . 'parameter' . DS . 'element.php');
to remove error message and allow config dialog to be accessible.
|
Can't access options
|
Posted 13 years, 7 months ago
by slavko
|
|
Yes, the same error, the same versions of Joomla and JoomDoc...
But i am not new to joomla, while i remmeber and was using original DocMan a lot of time ago :-)
|
Can't access options
|
Posted 13 years, 7 months ago
by slavko
|
More |