elFinder doesn't properly detect the mime type of files
Hi,
I have a problem with elFinder and doesn't properly display icons for each file (image attached). I think that has to do that does not properly detect the mime type of each file.
Any idea why it happens?
Thanks!!
Captura.PNG (21 kB)
Replies (11)
RE: elFinder doesn't properly detect the mime type of files
-
Added by Dmitry Levashov 10 months ago
"mimeDetect" => "internal"
or check your php for finfo extension
RE: elFinder doesn't properly detect the mime type of files
-
Added by Pere A 10 months ago
Thanks for response.
I activated the "mimeDetect" => "internal" and now works partially (images attached)
Big icons view works partially.
Small icons view works fine.
Captura1.PNG (31 kB)
Captura2.PNG (33.6 kB)
RE: elFinder doesn't properly detect the mime type of files
-
Added by Troex Nevelin 10 months ago
Do you use the latest 1.2 version? Looks like you have some mess with css and/or images files. Did you update your elFinder from previous version?
RE: elFinder doesn't properly detect the mime type of files
-
Added by Pere A 10 months ago
Yes, I use 1.2 version, clean install (no overwriting the old files) and I just modified the image icons_big.png (image attached).
icons-big.png (56 kB)
RE: elFinder doesn't properly detect the mime type of files
-
Added by Pere A 10 months ago
I try to explain the problem better.
In the integration with CKEditor, the popup that show elFinder, the icons are showing correctly. But in the page that I am showing the elFinder in a div#elfinder the icons works partially.
I'm in Drupal 7, and I add the following .js:
elfinder/js/elfinder.min.js
elfinder/js/i18n/elfinder.es.js
And the following jQuery UI elements:
drupal_add_library('system', 'ui.dialog');
drupal_add_library('system', 'ui.tabs');
drupal_add_library('system', 'ui.draggable');
drupal_add_library('system', 'ui.selectable');
drupal_add_library('system', 'ui.droppable');
drupal_add_library('system', 'ui.resizable');
And the CSS:
elfinder/css/elfinder.css
If I add too the jquery-1.6.1.min.js, seems that have conflicts with toolbar.js of drupal.
If I don't add the file (Drupal 7 include the jQuery 1.4), apparently the functionallity works fine (without big icons).
Am I missing any thing? Maybe better to go back to version 1.1 until the final release of elFidner 2.0?
Thanks.
RE: elFinder doesn't properly detect the mime type of files
-
Added by Troex Nevelin 10 months ago
We have been fixing some issues with Drupal 7 in latest release, I cannot say you for sure, you have to find problem yourself if this is style overlap you can see it in firebug and it should be easy to fix. If out of the box elFinder works fine - than this is probably not elFinder problem.
RE: elFinder doesn't properly detect the mime type of files
-
Added by Pere A 10 months ago
Ok, but the elFinder works correctly with version 1.4.4 of jQuery? or use a specific feature of 1.6?
Thanks.
RE: elFinder doesn't properly detect the mime type of files
-
Added by Pere A 10 months ago
I think that I find the issue. I've been debugging with Opera and from what I have seen, always apply the style ".html p" (image attached: Captura1.png).
Disabling the ".html p" style the icons are displayed correctly (image attached: Captura2.png).
My solution has been put the ".html p" style in the top of mime types styles (image attached: Captura 3.png).
Now all big icons (except the .html icon, minor issue) are displayed correctly.
So for now I'll leave it like that.
Thanks.
RE: elFinder doesn't properly detect the mime type of files
-
Added by Troex Nevelin 10 months ago
So this looks like opera only bug?
RE: elFinder doesn't properly detect the mime type of files
-
Added by Pere A 10 months ago
No, this happens with all browsers.
I think this happens because the Drupal create a html style in the body tag (image attached), and so the ".html p" style is applied to all "p" tags of the page.
Captura.PNG (15 kB)
RE: elFinder doesn't properly detect the mime type of files
-
Added by Pere A 10 months ago
Even so, attempts to apply styles that should not apply (image attached).
Captura1.PNG (95.3 kB)
(1-11/11)