Support Home Page › Forums › Joomla Software › Easy File Uploader Module › Not Permitted File Type
- This topic has 13 replies, 5 voices, and was last updated 12 years, 4 months ago by koshe.
-
AuthorPosts
-
May 20, 2011 at 1:44 pm #100dawn2Participant
Hello Sir,
When I try to upload pictures with this module – it says: “ERROR: The uploaded file type is not permitted.” but I have png and jpeg listed as allowed in the back end.
Any suggestions?
Thanks!
May 20, 2011 at 1:57 pm #1097Michael GilkesKeymaster@dawn2. Thanks for your question. Please note that there are several existing topics regarding this very question. Have a look here: http://support.michaelgilkes.com/tags/mime
Also, when you post to the forum for assistance, please provide your Joomla version, extension version, and PHP version. I really cannot help you if I don’t have that minimal information. Also, when stating your version, please be precise. For example, instead of saying you have PHP5, state that you have PHP 5.2.9
Thanks
May 20, 2011 at 2:26 pm #1098dawn2ParticipantSorry Sir! I’m not very good at internet things. 🙁
PhP is 5.2.5 – I’m pretty sure thats the issue.
Joomla 1.6
The extension version is the latest. I’ll go read those other forums now!
Sorry again!
May 20, 2011 at 3:16 pm #1099Michael GilkesKeymaster@dawn2. No problem. No need to apologize. If I seemed too blunt or discourteous in my response, I apologize. That was never intended. I hope that the topics that I pointed you to will give you the answer you need. If they don’t, please feel free to continue the discussion.
As your PHP version is 5.2.5, that is most likely the culprit. There is a workaround for that. So, please keep an eye out for it in the related topics on the site.
All the best.
July 22, 2011 at 7:52 am #1100jonkoParticipanthello sir,
i installed the latest version of this module locally in joomla 1.6.4 ,php 5.3.5 and i get this error. ” ERROR: The uploaded file type is not permitted”. Can you help ? thanks in advance
July 22, 2011 at 12:13 pm #1101Michael GilkesKeymaster@jonko. Hi, please let me know what was the name and/or extension of the file you uploaded. Also, Let me know what you have in your Module Manager under “Permitted file types (separate by semi-colon).” I need this minimal information to help you. Thanks.
July 22, 2011 at 10:23 pm #1102jonkoParticipantthanks michaelgilkes for the quick reply. I
installed the “mod_easyfileuploader_v0.8_j16” module and the “permitted file types” are : image/gif;image/jpeg;image/pjpeg;image/png;
thanks again
July 23, 2011 at 12:35 am #1103Michael GilkesKeymaster@jonko. Thanks for the info. You forgot to mention what was the name of the file you tried to upload.
Without any more information, it could be that the mime type that is detected is “application/octet-stream”. Some php web servers read the mime type of all image files as “application/octet-stream” instead of “image/gif;image/jpeg;image/pjpeg;image/png;”.
To find out what your file is detected as you can run test_script3 on your server, and copy and past the results in a post to me. Or, if you want more privacy, just send the result to my email. You can actually customize the file to test the specific file you are trying to upload. just place your file in the same directory as the test script file.
Hope this helps.
February 13, 2012 at 8:17 pm #1104dougevansParticipantHi Michael,
Could repost the test_script3 as megaupload.com has been shut down and we cannot reach the file anymore.
Thanks!
Doug
February 13, 2012 at 9:24 pm #1105Michael GilkesKeymaster@dougevans. I realize that you are trying to get help for your situation. You opened up another post, so… let’s continue the conversation there. I already responded to that one. I will provide another test script for you to use. Give me a little time. However, I will post it in the other post, just to not make the conversation be fragmented. OK? Cool.
February 13, 2012 at 9:50 pm #1106dougevansParticipantHi Michael,
Great. Thanks for the quick response!
Doug
July 7, 2012 at 2:55 pm #1107kosheParticipantHi Michael,
I faced the same problem when trying to upload pdf documents using easy file upload. And here is the information about the server and php.
===================================
PHP Version: 5.2.5.
FILEINFO_MIME_TYPE is NOT defined.
mime_content_type doesn’t exist.
This is a NON-Windows OS: Linux.
escapeshellarg is callable.
exec doesn’t exist.
shell_exec doesn’t exist.
======================================
Thank ur for help
July 7, 2012 at 8:39 pm #1108Michael GilkesKeymaster@koshe. Thanks for posting. Based on your server information, there is no way to test for mime types on your server. The best solution for you is to upgrade your server to PHP 5.3, and you will automatically be able to test for mime type.
July 8, 2012 at 12:02 pm #1109kosheParticipantDear Michael,
Thank u for your immediate response.
I cannot upgrade the server because it is not local. Am using web server of ISP. Is there any other option to solve the problem?
-
AuthorPosts
- The topic ‘Not Permitted File Type’ is closed to new replies.