FILEINFO_MIME_TYPE is NOT defined.

Home \ forums/topic \ FILEINFO_MIME_TYPE is NOT defined.

Support Home Page Forums Joomla Software Easy File Uploader Module FILEINFO_MIME_TYPE is NOT defined.

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • #257
    dougevans
    Participant

    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

    #1500
    dougevans
    Participant

    Sorry, 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

    #1501
    Michael Gilkes
    Keymaster

    @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.

    #1502
    dougevans
    Participant

    Hi 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

    #1503
    Michael Gilkes
    Keymaster

    @dougevans. Please post what you have in “Permitted file types” in your Module Manager.

    #1504
    dougevans
    Participant

    Hi 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;

    #1505
    Michael Gilkes
    Keymaster

    @dougevans. Here is the new link to the updated test script: mime test script version 4

    #1506
    Michael Gilkes
    Keymaster

    @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.

    #1507
    dougevans
    Participant

    Thanks 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

    #1508
    dougevans
    Participant

    Hi Michael. Can I get your email address please?

    #1509
    Michael Gilkes
    Keymaster

    @dougevans. Oops. Please re-download again. I left in some old code from the previous test script. Sorry about that.

    #1510
    Michael Gilkes
    Keymaster

    send it to support[at]valorapps[dot]com

    #1511
    dougevans
    Participant

    Thank 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 ]

    #1512
    Michael Gilkes
    Keymaster

    @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.

    #1513
    dougevans
    Participant

    Hi 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!

Viewing 15 posts - 1 through 15 (of 30 total)
  • The topic ‘FILEINFO_MIME_TYPE is NOT defined.’ is closed to new replies.