Wordpress Code To Allow Upload Of Microsoft Publisher Files
$10-30 AUD
Paid on delivery
I need you to write some php code to allow a wordpress site to upload Microsoft Publisher Files.
I have tried this but it doesn't work and get this error message on upload
(“Test doc for [login to view URL]” has failed to upload.
Sorry, this file type is not permitted for security reasons.)
//The code I have tried
add_filter('upload_mimes', 'add_custom_upload_mimes');
function add_custom_upload_mimes( $existing_mimes ){
//PUBLISHER FILES - ISSUE
//$existing_mimes['pub'] = 'application/vnd.ms-publisher';
//$existing_mimes['pub'] = 'application/mspublisher';
// neither of the above works for me
return $existing_mimes;
}
Please note you will need to develop and test this in your own wordpress environment.
I have provided a sample Microsoft Publisher file for you to try and upload.
Project ID: #18659745
About the project
8 freelancers are bidding on average $26 for this job
Hi, i hope you're doing well. I've just read your project's description and i would like to help you with it. I'm an experienced web developer with the necessary skills for getting this job done. Responsibilit More
Hello friend, I am a full stack developer, I have 10 years of experience in the development field, I have great experience in Wordpress. I can build a fantastic site for you on Wordpress, simply send me a message for More
Respected Sir Umag soft Solutions is the leading IT Company of Pakistan. We have 15+ years of experience and strong knowledge about programming languages PHP WORDPRESS Themes and Plug-ins development Bootstrap v More
Greetings! I have great experience in web development in CMS Wordpress and love challenge in Wordpress. Please provide MS-publisher file, I'll try at local then update at your server, But make surte your server also More