Please or Register to create posts and topics.

How to Asgaros support webp file upload?

Hi All

Is there any way for asgaros to support webp file uploads?



Uploaded files:
  • asgaros.png

You could try adding the following to your theme’s function.php.


/** webp file alow */

function my_myme_types($mime_types){
$mime_types[‘webp’] = ‘application/webp+xml’; //Adds webp extension
return $mime_types;
add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

Asgaros has reacted to this post.
Nur ein Biker weiƟ, warum ein Hund seinen Kopf aus einem Autofenster steckt.
Only a biker knows why a dog sticks its head out a car window.