From your theme directory, locate the functions.php file. You will be adding the code to create an exception here.

It is important to know that functions.php is the file behind the characteristics and functionality of your website.

Go ahead and copy-paste the below code snippet to the bottom of the functions.php file

add_filter('upload_mimes', 'allow_custom_mimes');

function allow_custom_mimes ( $existing_mimes=array() ) {
// ' with mime type 'application/'
$existing_mimes['apk'] = 'application/';
return $existing_mimes;

Share this post