Support Home Page › Forums › Joomla Software › Easy File Uploader Module › How to set MIME types for Photoshop files?
- This topic has 9 replies, 3 voices, and was last updated 13 years, 1 month ago by 
Michael Gilkes. 
- 
		AuthorPosts
 - 
		
			
				
February 6, 2012 at 7:01 pm #248
DesignM8
ParticipantI’ve tried adding this to the ‘Permitied file types’ box:
application/x-msexcel;image/photoshop;image/x-photoshop; image/psd;application/photoshop;application/psd; zz-application/zz-winassoc-psd
but .psd files are still not allowed, I get this error message:
ERROR: The uploaded file type , image/vnd.adobe.photoshop, is not permitted.
I’m new at this so please let me know what simple error I’m making!
February 6, 2012 at 7:26 pm #1476
Michael GilkesKeymaster@DesignM8. Thanks for posting. All you have to do is to use the mime type provided to you in the error message. So, please add “image/vnd.adobe.photoshop” to your list of permitted mime types.
I deliberately set the error message to list the detected mime type so that the user can see what mime type is being detected.
Hope this helps. If you need any further help, don’t hesitate to post again.
February 6, 2012 at 9:02 pm #1477DesignM8
ParticipantMany thanks Michael, simple! Excellent code, wonderful module.
September 22, 2012 at 6:25 pm #1478petneb
ParticipantI put in the mime type image/vnd.adobe.photoshop but it still gives me a mime type error, any ideas?
Has media manager allowed filename extensions or mime types got anything to do with the problem?
September 22, 2012 at 6:41 pm #1479petneb
ParticipantFunny, went to http://www.webmaster-toolkit.com/mime-types.shtml and found that mime type of psd files are application/octet-stream. After I added this mime type to the allowed mime types, it works. I think I have to investigate the security implications of this mime type.
September 22, 2012 at 7:09 pm #1480
Michael GilkesKeymaster@petneb. I think the mime type detected for that file depends on your server. The mime, application/octet-stream, is really a general purpose mime type. What you need to do is to find out what mime type your web server detects for the adobe files that you want to upload.
To help you out, I have a test_script that will allow you to see what mime type is being detected by your web server. Please try it out: test_script
September 22, 2012 at 7:23 pm #1481petneb
ParticipantThanks but I thought your easyfileuploader was detecting the mime type on the server! I don’t seem to be able to find the script you are referring to, maybe I’m blind but I can’t find a link 🙂
September 22, 2012 at 7:30 pm #1482petneb
ParticipantSorry, I found it. it’s just those annoying double underlined info box “links” popping up everywhere that confused me 🙂
September 22, 2012 at 7:46 pm #1483petneb
ParticipantOk, I’ve executed the script in the joomla root folder and it say’s that my psd file is image/vnd.adobe.photoshop in columns file_info and mime_content_type. Columns “exec -b –mime-type [-bi]” and “exec -b –mime-type [-bi]” just show’s a pair of angle brackets ([]). Why is it not working then?
I can upload the psd file through the media manager after adding psd to “Legal Extensions” in media manager options!
September 24, 2012 at 3:35 pm #1484
Michael GilkesKeymaster@petneb. The only other thing that comes to mind is the mime type detected by the browser. I test both, as a more secure way of determining the file’s mime.
If you are comfortable with PHP, I can tell you what to edit so that we can confirm the exact issue. Let me know if you are willing.
 - 
		AuthorPosts
 
- The topic ‘How to set MIME types for Photoshop files?’ is closed to new replies.