Adding mime types
-
Hi,
I want to extend supported mime types to allow .scn files. I’ve used the following code and it doesn’t work. Any suggestions would be greatly apreciated!
<?php add_filter( 'upload_mimes', 'amce_add_scn_support' ); /** * @param array $mimes The current array of MIME types that are supported. * @return array $mimees The updated array of supported MIME types. */ function amce_add_scn_support( $mimes ) { $mimes = array_merge( $mimes, array( 'scn' => 'application/octet-stream', ) ); return $mimes; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding mime types’ is closed to new replies.