Wordpress Code To Allow Upload Of Microsoft Publisher Files

Închis Postat la acum 5 ani S-au achitat serviciile după ce au fost prestate
Închis S-au achitat serviciile după ce au fost prestate

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

ID Proiect: #18659745

Detalii despre proiect

8 propuneri Proiect la distanță Activ acum 5 ani

8 freelanceri plasează o ofertă medie de 26$ pentru proiect

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 Mai multe

$30 AUD în 0 zile
(233 recenzii)
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 Mai multe

$30 AUD în 1 zi
(84 recenzii)
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 Mai multe

$25 AUD în 1 zi
(58 recenzii)
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 Mai multe

$25 AUD în 2 zile
(14 recenzii)
4.2