WordPress default .ppsx upload to Media Library not working
-
When trying to upload
.ppsx
into Media Library I get the following error:example.ppsx Sorry, this file type is not permitted for security reasons.
Even though WordPress by default
(wp_get_mime_types())
allow.ppsx
, I try the following methods, but none of them works.First Method:
Add the file type through my themefunctions.php
(Microsoft MIME Type Confirmed Here):function allow_file_types($mime_types){ $mime_types['ppsx'] = 'application/vnd.openxmlformats-officedocument.presentationml.slideshow'; return $mime_types; } add_filter('upload_mimes', 'allow_file_types', 1, 1);
Second Method:
Install plugins, which is does the exact same thing as myfunctions.php
method.Third Method:
Open up all file types throughwp-config.php
, but this has a security risk and not ideal.define('ALLOW_UNFILTERED_UPLOADS', true);
Have anyone exprience the same issue? If so, please let me know how did you fix it. Thank you
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘WordPress default .ppsx upload to Media Library not working’ is closed to new replies.