Wordpress Code To Allow Upload Of Microsoft Publisher Files

Closed Posted 5 years ago Paid on delivery
Closed 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.

HTML MySQL PHP WordPress

Project ID: #18659745

About the project

8 proposals Remote project Active 4 years ago

8 freelancers are bidding on average $26 for this job

Torricelli

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

$30 AUD in 0 days
(233 Reviews)
6.5
pakistansolution

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

$30 AUD in 1 day
(84 Reviews)
6.0
developersshop

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

$25 AUD in 1 day
(58 Reviews)
5.5
rishijha07

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

$25 AUD in 2 days
(14 Reviews)
4.2