ERROR: The uploaded file type ()is not permitted. on LINUX

Home \ forums/topic \ ERROR: The uploaded file type ()is not permitted. on LINUX

Support Home Page Forums Joomla Software Easy File Uploader Module ERROR: The uploaded file type ()is not permitted. on LINUX

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #282
    tess1623
    Participant

    Hi,

    I’m getting the error of “ERROR: The uploaded file type ()is not permitted” when trying to upload any type of document.

    Permitted File Types are set to:

    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;pdf;*

    PHP Version/Info:

    PHP Version: 5.2.17.

    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.

    I did see potential resolutions for Windows servers, but none for Linux? The site is hosted on GoDaddy.com.

    Any help is much appreciated!!

    T

    #1586
    Michael Gilkes
    Keymaster

    @tess1623. Thanks for posting. The easiest and simplest way to solve your problem is to get your PHP upgraded to 5.3. With PHP 5.2 mime type detection through file info and mime_content_type will be unavailable, as the diagnostics clearly state.

    With PHP 5.2 it all depends on whether your hosting company (GoDaddy) allows calling the the linux file command. Others have had the same situation. However, the resolution can be different for each person, actually. Have a look at this link and download the test script version 4.

    Here is another discussion on this issue for your reference: http://support.michaelgilkes.com/topic/fileinfo_mime_type-is-not-defined

    If GoDaddy doesn’t allow executing the file command, then there is nothing I can do. There is a workaround to the issue. However, it makes things less secure. I prefer to share that with you after we have exhausted all other options. First, let’s start with the MIME detection test script to see what your server actually detects.

    To be honest, if you can get GoDaddy to upgrade your PHP to 5.3, then you are set. Since MIME detection is built into 5.3.

    #1587
    tess1623
    Participant

    Thanks Michael!

    GoDaddy did provide an option to upgrade php to 5.3, which I did and now the file uploader works fine. Unfortunately, now when I log into the Joomla frontend I get a 403 error on all pages. Guess it didn’t like the upgrade.

    Thanks for your help!

    Theresa

    #1588
    Michael Gilkes
    Keymaster

    @tess1623. I am glad that you were able to upgrade to PHP 5.3. I don’t know why you would get a 403 (Forbidden Access) error when logging into your front end. What exact version of Joomla do you have?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘ERROR: The uploaded file type ()is not permitted. on LINUX’ is closed to new replies.