This topic contains 3 reply and 2 voices, and was last updated by Oritro Ahmed 6 years ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
May 7, 2014 at 6:15 pm 20072
Oritro Ahmed Hi, how can I add other file types (eg. ai, tiff, tif etc) under the custom file upload field (beyond those currently permitted)? thanks!
May 7, 2014 at 11:02 pm 20098
Oritro Ahmed Oritro Ahmed

Hello Michael,

You can add additional file type to wordpress. you can do that via adding some line to your themes functions.php. Before doing that, please check the MIME type of your desired filetype. You can find a pretty sophisticated list here,

add_filter('upload_mimes', 'additional_upload_format'); 
function additional_upload_format ( $existing_mimes=array() ) { 
// Windows Executable Installer file 
$existing_mimes['exe'] = 'application/octet-stream'; 
// Word Perfect File  
$existing_mimes['wp'] = 'application/wordperfect'; 
return $existing_mimes; 

Its pretty simple to use actually. $existing_mimes['wp'] change wp with the callsign and extension of the file. and change 'application/wordperfect' to your desired mime type.

May 12, 2014 at 9:03 am 20307
Michael Chung Yeung Michael Chung Yeung

Thanks for your help! It works!

May 12, 2014 at 7:20 pm 20348
Oritro Ahmed Oritro Ahmed

Happy to help.

Viewing 3 Posts - 1 through 3 (of 3 total)