.pdf files recognized in local environment, but not in production
Added by Steven Applegate 9 months ago
I'm having a strange problem, hopefully it's an easy fix.
When I'm working locally and I upload a .pdf file, the file has the Adobe Reader icon, I can preview the document with Quick Look, and when I click on File Info, the file Kind is recognized as "Portable Document Format (PDF)".
But in production, the file doesn't get the Adobe Reader icon, I cannot preview it with Quick Look, and when I click on File Info, the file Kind is "unknown".
The file is still uploaded correctly, but for some reason elFinder can't recognize the .pdf file. It does recognize image files, just not .pdf files.
I'm using version 1.2. I've attached some screen shots of my problem in my production environment.
Replies (1)
RE: .pdf files recognized in local environment, but not in production
-
Added by Troex Nevelin 9 months ago
Probably you mime-type detect does not work correctly (elFinder uses finfo if available and than system mime-detect), you can set mimeDetect option in connector to internal than mime will be detected by file extension.
(1-1/1)