Sep 22 2009
Problems with WordPress MU 2.8.4a and PPSX files
WordPress MU 2.8.4a refuses to upload .ppsx (PowerPoint Show files for PowerPoint 2007/2008) because the extension hasn’t been defined in the functions “wp_check_filetype” and “wp_ext2type” in /wp-content/functions.php
Not having ppsx defined here causes WordPress? MU to throw the warning “File type does not meet security guidelines. Try another.” when uploading the file (even when the ppsx file type itself is blessed in WPMU’s admin options).
I’ve reported the bug to WordPress MU Track here:
Update
The fix isn’t quite so straightforward as just adding .ppsx to the list of valid PowerPoint extensions, because technically PowerPoint Shows for 2007 have their own MIME type:
- application/vnd.openxmlformats-officedocument.presentationml.slideshow
As does PowerPoint 2007:
- application/vnd.openxmlformats-officedocument.presentationml.presentation
Specifying the wrong MIME type for PowerPoint Show files caused WordPress to add a .ppt extension to the file, which played havoc with subsequent downloads. The fix was to specify the MIME type in wp_check_filetype:
- ‘ppsx’ => ‘application/vnd.openxmlformats-officedocument.presentationml.slideshow’
My bug report at WordPress MU was closed because this is technically something that needs to be changed in core WordPress; I’ll be reporting it there shortly.
Create a free edublog to get your own comment avatar (and more!)