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

WordPress Trac noreply at wordpress.org
Wed Apr 12 13:38:07 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 mi5t4n):

 @audrasjb The `finfo_file()` returns redundant mime type for google docs.

 @azaozz You're right, it's an issue with the `finfo_file()` function. It
 will be better to handle that specific edge case only. I have pushed new
 changes.

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


More information about the wp-trac mailing list