PHP cannot detect mime

Home \ forums/topic \ PHP cannot detect mime

Support Home Page Forums Joomla Software Easy File Uploader Module PHP cannot detect mime

This topic contains 2 replies, has 2 voices, and was last updated by  Dovogja 3 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #831

    Dovogja
    Participant

    Hi,

    I am trying the easy File uploader with PHP 5.6.14

    When I try to upload I get this error:

    ERROR: The uploaded file type is not permitted.

    MIME detected by PHP:

    MIME detected by Browser: application/zip

    So it seems that my browser is able to detect it but PHP is not.

    I have also confirmed that php_fileinfo.dll is present in the php/ext folder.

    Permitted filetypes:

    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

    I tried to upload different filetypes but always the same error…

    Any help would be appreciated.

    Thank you!

    #2177

    Michael Gilkes
    Keymaster

    @dovogja. Please provide either a screenshot or copy/paste of the diagnostic information (it is located at the bottom) in the Module Manager page for the extension.

    #2178

    Dovogja
    Participant

    @michaelgilkes

    Thank you for your response.

    I figured it out: in php.ini I had to include

    extension=php_fileinfo.dll.

    Now it works like a charm 🙂

    Sorry for the trouble, have a nice day

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘PHP cannot detect mime’ is closed to new replies.