[wp-trac] [WordPress Trac] #57898: Google Doc saved as .docx file not allowed in media library

WordPress Trac noreply at wordpress.org
Wed Jun 7 11:43:22 UTC 2023


#57898: Google Doc saved as .docx file not allowed in media library
---------------------------------------------------+-----------------------
 Reporter:  winterstreet                           |       Owner:  audrasjb
     Type:  defect (bug)                           |      Status:  accepted
 Priority:  normal                                 |   Milestone:  6.3
Component:  Upload                                 |     Version:  6.1.1
 Severity:  normal                                 |  Resolution:
 Keywords:  has-patch has-screenshots 2nd-opinion  |     Focuses:
---------------------------------------------------+-----------------------

Comment (by mikeschroder):

 Checked into this a bit, and wanted to confirm that it does seem to be an
 upstream bug:
 https://bugs.php.net/bug.php?id=77784

 The ticket indicates it may affect Excel / `xlsx` files as well, returning
 `application/vnd.openxmlformats-
 officedocument.spreadsheetml.sheetapplication/vnd.openxmlformats-
 officedocument.spreadsheetml.sheet`.

 A commenter in the above ticket notes that they believe it's an issue in
 `libmagic`. I had difficulty searching for references in the tracker for
 `libmagic` for this issue, but if anyone is able to do so, please feel
 free to reference here.

 If there isn't yet an open (or resolved) issue there, it'd likely be a
 good idea to open one so that it can be fixed upstream.

 In the meantime, I'm not opposed to fixing the exceptions here like in the
 proposed patch.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57898#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list