ovizii
8/4/2013 - 9:46 AM

Allow upload of more file types

Allow upload of more file types

<?php  //just need to research the type for each ending
    function addUploadMimes($mimes) {  
    $mimes = array_merge($mimes, array(  
        'pdf|xls|tmPreferences' => 'application/octet-stream'  
    ));  
    return $mimes;  
   }  
?>  
add_filter('upload_mimes', 'addUploadMimes');