Project

General

Profile

Actions

Support #14369

closed

renewed problem with ppsx files

Added by Marilyn Weber almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
-
Category name:
WordPress - Media
Target version:
Start date:
2021-04-25
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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

Actions #1

Updated by Marilyn Weber almost 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"

Actions #2

Updated by Boone Gorges almost 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?

Actions #3

Updated by Raymond Hoh almost 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.

Actions #4

Updated by Boone Gorges almost 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?

Actions #5

Updated by Marilyn Weber almost 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/

Actions #6

Updated by Raymond Hoh almost 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.

Actions #7

Updated by Marilyn Weber almost 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?

Actions #8

Updated by Raymond Hoh almost 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.

Actions #9

Updated by Marilyn Weber almost 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.

Actions #10

Updated by Marilyn Weber almost 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.

Actions #11

Updated by Marilyn Weber almost 3 years ago

Video attached if you're curious. No Add Document option when I'm logged in as superadmin.

Actions #12

Updated by Raymond Hoh almost 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?

Actions

Also available in: Atom PDF