Support #14369
closedrenewed problem with ppsx files
Added by Marilyn Weber over 3 years ago. Updated over 3 years ago.
0%
Description
Related to https://redmine.gc.cuny.edu/issues/13238
We have a report on ZendDesk from Defne Sener that ppsx files again are vlocked - "Sorry, this file type is not permitted for security reasons.". I attach the ppsx file, which I'm also not able to upload to a test site I have.
Files
Introductory Presentation - Defne FINAL.ppsx (6.05 MB) Introductory Presentation - Defne FINAL.ppsx | Marilyn Weber, 2021-04-25 11:08 AM | ||
Introductory Presentation - Defne FINA.xml (8.42 MB) Introductory Presentation - Defne FINA.xml | Marilyn Weber, 2021-04-26 06:16 PM | ||
Screen Recording 2021-04-26 at 9.10.46 PM.mov (23.7 MB) Screen Recording 2021-04-26 at 9.10.46 PM.mov | Marilyn Weber, 2021-04-26 09:13 PM |
Updated by Marilyn Weber over 3 years ago
Oops, blocked not "vlocked"! Anthony had also tried without success and had a theory - " I think it might have to do with the narration embedded in the PowerPoint, meaning I think the audio is where the compatibility issue is"
Updated by Boone Gorges over 3 years ago
The provided file has a mime-type
application/vnd.openxmlformats-officedocument.presentationml.presentation. Ray, how do we handle this case, where a given extension seems to have multiple possible mime-types?
Updated by Raymond Hoh over 3 years ago
There are a bunch of WordPress tickets about multiple mime types. See https://core.trac.wordpress.org/ticket/40175 and https://core.trac.wordpress.org/ticket/46775.
The easiest workaround in this case is to rename the file extension for the user's file to pptx
:
https://github.com/WordPress/WordPress/blob/5ba41bd4f097c9bcd699736fc560686c0cad621e/wp-includes/functions.php#L3168
Would that work for the user?
If we want to support the ppsx
extension with the application/vnd.openxmlformats-officedocument.presentationml.presentation
mimetype, then there is a workaround we can use in https://wordpress.stackexchange.com/a/323757.
Another option is to install the Lord of the Files plugin, which properly detects file types and doesn't rely on the file extension as the main point of reference.
Updated by Boone Gorges over 3 years ago
Thanks, Ray! Given that this has only just come up, I think we should go the lo-fi route and ask the user to try renaming the file so it's got the 'pptx' extension. Marilyn, could you pass that request along?
Updated by Marilyn Weber over 3 years ago
I decided to try it out myself. It seems that will let you link to the PPTX but not embed it. Here's m attempt - https://marilyncourse2.commons.gc.cuny.edu/pptx/
Also, I didn't know what PPTX was. It took me a couple tries to see that it's "Strict open XML presentation". Is that right?
Lastly - Defne notes that her professor was able to do it on the class site - https://ccnyengineers.commons.gc.cuny.edu/introductory-presentation/
Updated by Raymond Hoh over 3 years ago
Hi Marilyn,
Uploading is different than embedding. We wanted to solve the upload issue and it looks like renaming the ppsx
file extension to pptx
allowed the upload to go through.
Regarding embedding, the professor is using the Embed Any Document plugin to embed the pptx
file.
Updated by Marilyn Weber over 3 years ago
I tried with Embed Any Doc and it didn't work.
I cc'd the professor on the ticket and here's the reply:
"From the Introductory Presentation's 'Edit Page' (in classic editor mode), I clicked "add document" (not add media). I then uploaded the .pptx file (not the .ppsx file). I was then given an "Advanced Options" popup and I left it as is and clicked "insert." I then updated the page... and it worked!
Also, I only have 2 plugins active: PDF embedder and Embed Any Document"
I don't know what he means by "add document" (not add media) Can you clarify?
Updated by Raymond Hoh over 3 years ago
- Category name set to WordPress - Media
- Status changed from New to Resolved
- Target version set to Not tracked
"Add Document" is a button from the "Embed Any Document" plugin when the Classic Editor is in use:
If you're using the Block Editor, you can use Embed Any Document's "Document" block:
Going to close this one out.
Updated by Marilyn Weber over 3 years ago
Sorry, can you do a video of classic editor? I'm not seeing it. I will send you a video of what I see.
Updated by Marilyn Weber over 3 years ago
Oh! I see it now that I'm logged in as regular me. But I did not see it when I was super. So, no worries.
Updated by Marilyn Weber over 3 years ago
- File Screen Recording 2021-04-26 at 9.10.46 PM.mov Screen Recording 2021-04-26 at 9.10.46 PM.mov added
Video attached if you're curious. No Add Document option when I'm logged in as superadmin.
Updated by Raymond Hoh over 3 years ago
No Add Document option when I'm logged in as superadmin.
Hi Marilyn,
The "Embed Any Document" plugin wasn't activated on the superm
site. I just activated it there and then proceeded to "Posts > Add New" and switched the editor to Classic Editor. I'm able to see the "Add Document" button as a super admin on the superm
site.
Are you able to see it now?