We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How do I allow for webp format images to be uploaded in the file manager?

How Do I?

c308marketing's avatar
c308marketing
4 posts
5 years ago
c308marketing's avatar c308marketing

I am trying to use .webp format images to reduce overhead. When I try and upload through the file manager, it tells me “Cannot Upload File. File Not Allowed.” The directory is set up accept all file types. Any suggestions?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

It’s probably not a recognized mime type.

Yep- go look in system/ee/EllisLab/ExpressionEngine/Config/mimes.php. Those are the mime types it knows. You need to add one- but not there, in the system/user/config/config.php file.

Try using the mime_whitelist_additions override

$config['mime_whitelist_additions'] = array(
  'image/webp'
);
? 2
       
Happy Content's avatar
Happy Content
54 posts
5 years ago
Happy Content's avatar Happy Content

Tweaked my mime config as in Robin’s suggestion and what now allows EE to attempt to upload webp files but I am now getting:

Cannot Upload File Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.

To get around this is there a way to turn off thumbnail generation?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.