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

WordPress Trac noreply at wordpress.org
Sat Jul 1 09:29:25 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.4
Component:  Upload                                 |     Version:  6.1.1
 Severity:  normal                                 |  Resolution:
 Keywords:  has-patch has-screenshots 2nd-opinion  |     Focuses:
---------------------------------------------------+-----------------------
Changes (by oglekler):

 * milestone:  6.3 => 6.4


Comment:

 I uploaded several files from my Google Disk - .docx and .xlsx and some of
 them have correct mime types and were uploaded fine and some of them have
 this duplicated string. I opened .xlsx file in Excel and resaved it, and
 it got the correct mime type. I wonder if we need to make a workaround for
 errors which were made by some other tool instead of addressing the source
 of this thing — Google Docs or any function/library they are using while
 saving a file as .docx or .xlsx. All .pptx filed I tried were uploaded
 successfully, but it doesn't mean that this can be the case also.

 Solution is questionable and patch is not ready. And if there will be a
 patch, I believe that it will need Unit test as well. So, I am moving this
 ticket for 6.4 for further consideration.

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


More information about the wp-trac mailing list