-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zoho editor - save not work properly depend of php version #2564
Comments
@jacceko The Zoho editor plugin receives uploads from the Zoho server, assigns the data to variables, and processes them. It is probably due to differences in upload limit or memory limit, not due to server version differences. Please check those settings on your server. |
@jacceko It seems that there is a problem with detection of MIME-Type. In PHP 7, when you hover over the file type of the file information dialog of the bin icon, the MIME-Type is displayed on the tooltip. What is that MIME-Type? |
In php 5.6 or higher - file type is displayed: Application How it recognize mime type if not base of extension ? Edit 1: I check php "mime_content_type": In php 5.6 and higher: in php 5.4 work OK both version: Edit 2: Then I edit my elFinderVolumeDriverClass.php and after this: I found another solution maybe good for future of ElFinder to be sure that in all version of php always every extension work the same. It not base of php magic.mime files , but based of apache mime type definition file which is easy to download and parse. For example (in example mime.type downloaded file, but it can be local file distributed with ElFinder, and update with update sometimes with ElFinder update) function generateUpToDateMimeArray($url){ // usage: Edit 3: |
@jacceko When the MIME type is "application/octet-stream", it is logic to detect from the file extension, but there seems to be a bug in it. I will fix it. |
@jacceko I think that this problem was fixed. Note: elFinder detects MIME-Type by file contents as much as possible for security reasons. If you want to detect MIME-Type with only the file extension, set "mimeDetect" of the connector roots option to "internal". Thanks! 👍 |
Zoho editor work in php 5.4 ok with all file formats .doc, docx, .xls, .xlsx,
but with php 5.6, 7.0, 7.1, 7.2 when I save .docx or .xlsx - it make some big file which is not properly saved office files, (but old word file .doc is saved OK)
The text was updated successfully, but these errors were encountered: