Check the file /includes/mime.types. The line "application/msword" probably just has the "doc" extension. So what is happening is that your ppt extensions are being determined to be "application/msword", which I agree is incorrect, then the extension is checked and found not to be "doc", and so it fails to upload. The workaround is to add "ppt" to the "application/msword" mime type in the mime.types file. So modify the line the line to be:
application/msword doc ppt
I'm a little surprised "wgVerifyMimeType= false;" didn't work.
-Jim
-----Original Message----- From: Hiram Clawson [mailto:hiram@soe.ucsc.edu] Sent: Monday, March 17, 2008 5:59 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] PPT file uploads
Good Afternoon MW Fans:
I've read through previous threads on this situation, and have tried the work-arounds to allow uploads of ppt files. This is MW version 1.8.2
I have settings:
wgFileExtensions = long list of every potential extension I can think of. Doesn't help at all for anything. Seems to be completely inoperative.
wgMimeDetectorCommand = /usr/bin/file -bi This helps with most types of extensions.
And finally, to allow the ppt upload: wgVerifyMimeType= false;
But, then the Wiki thinks this is MIME type: application/msword Which appears to be incorrect. I don't know, are ppt files supposed to be this MIME type ?
The problem comes in when a use clicks on the ppt file link. I can't seem to get WEB browsers to exec the appropriate ppt viewer program.
Did anyone else ever get this to work ?
--Hiram
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l