This is a super simple plugin that allows you to upload doc, docx, ppt, pptx, xls, xlsx files through the media library uploader. I couldn’t find a plugin that could do this, so I decided to build one. Hope it helps others too.
http://wordpress.org/extend/plugins/allow-wordpowerpoint-file-uploads/
Excellent article, thanks for submitting this!
I strongly recommend changing the function name ‘custom_upload_mimes’ to something more unique like ‘yohman_custom_upload_mimes’. This will prevent a fatal error caused when another plugin author uses your code or the example from which it was made from trying to declare/redeclare the same function.
Thanks Anon. Updated the plugin to reflect your suggestion.
Hi,
In some cases you can download the file, while in some cases you can download a zip file which contains an XML file. Why does this problem happen? can I fix it somehow?
Thank for this plug in, do you have a screen shots or manual how to use it.
@vin
Sorry, no manual, but by activating this plugin, you should be able to upload word and ppt files through the media upload button.
It did not go well. While uploading through media upload button fianlly i got the message as below.
“abcd.docx” has failed to upload due to an error
Unable to create directory /home/medicaltourismmodel/www/wordpress/wp-content/uploads/2011/01. Is its parent directory writable by the server?
what to do now/
I don’t know much about how these things work, but if I upload a spreadsheet that I have, will readers be able to type a number into ONE cell, and then see the results of the calculation that the spreadsheet makes ?
ie: Exactly as I would using the spreadsheet on my PC.
Thanks
Very nice job. But the images on the word documents are not uploaded with the text.
how can i download the plug-in..it doesn’t work on mine