https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2021-04-25T15:11:42ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611132021-04-25T15:11:42ZMarilyn WeberMweber@gc.cuny.edu
<ul></ul><p>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"</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611162021-04-26T14:29:13ZBoone Gorgesboone@gorg.es
<ul></ul><p>The provided file has a mime-type <pre>application/vnd.openxmlformats-officedocument.presentationml.presentation</pre>. Ray, how do we handle this case, where a given extension seems to have multiple possible mime-types?</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611302021-04-26T19:15:20ZRaymond Hoh
<ul></ul><p>There are a bunch of WordPress tickets about multiple mime types. See <a class="external" href="https://core.trac.wordpress.org/ticket/40175">https://core.trac.wordpress.org/ticket/40175</a> and <a class="external" href="https://core.trac.wordpress.org/ticket/46775">https://core.trac.wordpress.org/ticket/46775</a>.</p>
<p>The easiest workaround in this case is to rename the file extension for the user's file to <code>pptx</code>:<br /><a class="external" href="https://github.com/WordPress/WordPress/blob/5ba41bd4f097c9bcd699736fc560686c0cad621e/wp-includes/functions.php#L3168">https://github.com/WordPress/WordPress/blob/5ba41bd4f097c9bcd699736fc560686c0cad621e/wp-includes/functions.php#L3168</a></p>
<p>Would that work for the user?</p>
<p>If we want to support the <code>ppsx</code> extension with the <code>application/vnd.openxmlformats-officedocument.presentationml.presentation</code> mimetype, then there is a workaround we can use in <a class="external" href="https://wordpress.stackexchange.com/a/323757">https://wordpress.stackexchange.com/a/323757</a>.</p>
<p>Another option is to install the <a href="https://wordpress.org/plugins/blob-mimes/" class="external">Lord of the Files</a> plugin, which properly detects file types and doesn't rely on the file extension as the main point of reference.</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611312021-04-26T19:43:50ZBoone Gorgesboone@gorg.es
<ul></ul><p>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?</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611402021-04-26T22:22:38ZMarilyn WeberMweber@gc.cuny.edu
<ul><li><strong>File</strong> <a href="/attachments/18236">Introductory Presentation - Defne FINA.xml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/18236/Introductory%20Presentation%20-%20Defne%20FINA.xml">Introductory Presentation - Defne FINA.xml</a> added</li></ul><p>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 - <a class="external" href="https://marilyncourse2.commons.gc.cuny.edu/pptx/">https://marilyncourse2.commons.gc.cuny.edu/pptx/</a></p>
<p>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?</p>
<p>Lastly - Defne notes that her professor was able to do it on the class site - <a class="external" href="https://ccnyengineers.commons.gc.cuny.edu/introductory-presentation/">https://ccnyengineers.commons.gc.cuny.edu/introductory-presentation/</a></p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611422021-04-26T23:41:48ZRaymond Hoh
<ul></ul><p>Hi Marilyn,</p>
<p>Uploading is different than embedding. We wanted to solve the upload issue and it looks like renaming the <code>ppsx</code> file extension to <code>pptx</code> allowed the upload to go through.</p>
<p>Regarding embedding, the professor is using the <a href="https://wordpress.org/plugins/embed-any-document/" class="external">Embed Any Document</a> plugin to embed the <code>pptx</code> file.</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611442021-04-27T00:55:49ZMarilyn WeberMweber@gc.cuny.edu
<ul></ul><p>I tried with Embed Any Doc and it didn't work.</p>
<p>I cc'd the professor on the ticket and here's the reply:<br />"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!<br />Also, I only have 2 plugins active: PDF embedder and Embed Any Document"</p>
<p>I don't know what he means by "add document" (not add media) Can you clarify?</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611452021-04-27T01:05:11ZRaymond Hoh
<ul><li><strong>Category name</strong> set to <i>WordPress - Media</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>Not tracked</i></li></ul><p>"Add Document" is a button from the "Embed Any Document" plugin when the Classic Editor is in use:</p>
<p><img src="https://ps.w.org/embed-any-document/assets/screenshot-2.png" alt="" /></p>
<p>If you're using the Block Editor, you can use Embed Any Document's "Document" block:</p>
<p><img src="https://ps.w.org/embed-any-document/assets/screenshot-1.gif" alt="" /></p>
<p>Going to close this one out.</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611462021-04-27T01:07:13ZMarilyn WeberMweber@gc.cuny.edu
<ul></ul><p>Sorry, can you do a video of classic editor? I'm not seeing it. I will send you a video of what I see.</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611472021-04-27T01:08:08ZMarilyn WeberMweber@gc.cuny.edu
<ul></ul><p>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.</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611482021-04-27T01:14:00ZMarilyn WeberMweber@gc.cuny.edu
<ul><li><strong>File</strong> <a href="/attachments/18238">Screen Recording 2021-04-26 at 9.10.46 PM.mov</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/18238/Screen%20Recording%202021-04-26%20at%209.10.46%20PM.mov">Screen Recording 2021-04-26 at 9.10.46 PM.mov</a> added</li></ul><p>Video attached if you're curious. No Add Document option when I'm logged in as superadmin.</p> CUNY Academic Commons - Support #14369: renewed problem with ppsx fileshttps://redmine.gc.cuny.edu/issues/14369?journal_id=611682021-04-27T16:44:39ZRaymond Hoh
<ul></ul><blockquote>
<p>No Add Document option when I'm logged in as superadmin.</p>
</blockquote>
<p>Hi Marilyn,</p>
<p>The "Embed Any Document" plugin wasn't activated on the <code>superm</code> 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 <code>superm</code> site.</p>
<p>Are you able to see it now?</p>