In order to upload JPEG2000 (.jpf) images to a site I need to add a new mime type to config.php. What is the correct way to do this?


There is a configuration override you can use here:


Just use that in your config file to add your custom mime types to the whitelist.

  • When I add this I still get a File not allowed error: $config['mime_whitelist_additions'] = array('image/vnd.adobe.photoshop');
    – forrest
    May 20 '19 at 17:03
  • I doubt "image/vnd.adobe.photoshop" is the mime type for a JPEG2000 file. You'll have to look up the correct mime type string to white list.
    – jrothafer
    May 20 '19 at 17:06
  • Hence my question. I have not been able to find anything on that.
    – forrest
    May 20 '19 at 17:07
  • en.wikipedia.org/wiki/JPEG_2000 Right in the wiki page, image/jp2
    – jrothafer
    May 20 '19 at 17:13
  • Tried this: $config['mime_whitelist_additions'] = array('image/jp2'); Error persists.
    – forrest
    May 20 '19 at 18:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.