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

Home \ forums/reply \ Re: 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 Re: ERROR: The uploaded file type ()is not permitted. on LINUX

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