Support Home Page › Forums › Joomla Software › Easy File Uploader Module › FILEINFO_MIME_TYPE is NOT defined.
- This topic has 29 replies, 5 voices, and was last updated 12 years, 6 months ago by Michael Gilkes.
-
AuthorPosts
-
February 13, 2012 at 8:00 pm #257dougevansParticipant
Hi. I did a search and could not find the answer to this. I apologize if it has been asked before and I missed it.
I have installe the Easy File Uploader and I have the following error at the bottom of the module:
PHP Version: 5.2.13.
FILEINFO_MIME_TYPE is NOT defined.
mime_content_type doesn’t exist.
This is a NON-Windows OS: Linux.
I checked with my host and they said that the exec function is enabled by default. Could someone give me some insight on this or maybe a clue to investigate?
Thanks in advance!!
Doug
February 13, 2012 at 8:21 pm #1500dougevansParticipantSorry, just a little more information for my post:
Joomla 1.5.23
Error occurred while trying to upload simple .PDF file.
Still looking in forum but no answer yet….
Thanks again,
Doug
February 13, 2012 at 9:20 pm #1501Michael GilkesKeymaster@dougevans. Thanks for posting. The information provided to you at the end of the module is not an error. It is some information about your php setup to see how compatible it is for detecting the MIME type of the file. So, first off, don’t worry about that.
For someone with PHP 5.2, it is typical to have FILEINFO_MIME_TYPE not defined and mime_content_type unavailable. I provide that information to make it easier for me to diagnose any problems and to give advice as to how to make everything work for your situation.
With that said, Doug, I can definitely help you. Send me either a screenshot or description of the error you are getting when you upload a file. The great thing about your situation is that exec is working on your host, so, we can move forward from there.
February 13, 2012 at 9:55 pm #1502dougevansParticipantHi Michael,
Thanks for the quick reply!
I don’t know how to post a screenshot but I can cut and paste the error here:
ERROR: The uploaded file type , application/pdf, is not permitted.
Return Code: 4 No file was uploaded
Return Code: 4 No file was uploaded
Obviously the second two errors did not have any file to upload.
Thanks,
Doug
February 13, 2012 at 10:51 pm #1503Michael GilkesKeymaster@dougevans. Please post what you have in “Permitted file types” in your Module Manager.
February 13, 2012 at 11:01 pm #1504dougevansParticipantHi Michael. I just went with the default:
image/gif;image/jpeg;image/pjpeg;image/png;application/pdf;application/msword;application/zip;application/x-compressed;application/x-zip-compressed;multipart/x-zip;application/excel;application/vnd.ms-excel;application/x-excel;application/x-msexcel;
February 13, 2012 at 11:16 pm #1505Michael GilkesKeymaster@dougevans. Here is the new link to the updated test script: mime test script version 4
February 13, 2012 at 11:26 pm #1506Michael GilkesKeymaster@dougevans. Oh… I just noticed your new post. It’s strange that it is detecting the mime type correctly, but for some reason is not finding it in the list. Ok. I will look at the code I have to see what is going on.
If I could get access to your page to have a look for myself, that would be helpful. Just send me an email with the link. Depending on what I see on the page, we can go from there.
February 13, 2012 at 11:30 pm #1507dougevansParticipantThanks Michael. Here is the result:
FILEINFO_MIME_TYPE is NOT defined.
Fatal error: Call to undefined function finfo_open() in /home/ready/public_html/test_script4.php on line 133
February 13, 2012 at 11:32 pm #1508dougevansParticipantHi Michael. Can I get your email address please?
February 13, 2012 at 11:36 pm #1509Michael GilkesKeymaster@dougevans. Oops. Please re-download again. I left in some old code from the previous test script. Sorry about that.
February 13, 2012 at 11:37 pm #1510Michael GilkesKeymastersend it to support[at]valorapps[dot]com
February 13, 2012 at 11:43 pm #1511dougevansParticipantThank you. I’m not sure if I can paste the results but here it is:
PHP Version: 5.2.13.
FILEINFO_MIME_TYPE is NOT defined.
mime_content_type doesn’t exist.
This is a NON-Windows OS: Linux.
escapeshellarg is callable.
exec is callable.
shell_exec is callable.
Filename file_info mime_content_type exec -b –mime-type [-bi] shell_exec -b –mime-type [-bi]
CHANGELOG.php – – [text/plain; charset=utf-8] [text/plain; charset=utf-8 ]
COPYRIGHT.php – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
CREDITS.php – – [text/plain; charset=utf-8] [text/plain; charset=utf-8 ]
INSTALL.php – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
LICENSE.php – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
LICENSES.php – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
configuration.php – – [text/x-c++; charset=us-ascii] [text/x-c++; charset=us-ascii ]
configuration.php-dist – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
error_log – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
fantversion.php – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
htaccess – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
index.php – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
index2.php – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
index_placeholder.html – – [text/html] [text/html ]
robots.txt – – [text/plain; charset=us-ascii] [text/plain; charset=us-ascii ]
test_script4.php – – [text/html] [text/html ]
February 14, 2012 at 12:13 am #1512Michael GilkesKeymaster@dougevans. It is best to run the script in the same folder that lists the types of files you want to upload. That way, you can see what mime types are being detected for the files you are working with.
February 14, 2012 at 12:23 am #1513dougevansParticipantHi Michael. Are you saying run it from the folder that I am attempting to upload to?
Or the same folder that lists the types of files you want to upload? If it is the second choice, can you tell me where to find that folder?
Thanks for the support!
-
AuthorPosts
- The topic ‘FILEINFO_MIME_TYPE is NOT defined.’ is closed to new replies.