Make WordPress Core

Opened 2 years ago

Closed 17 months ago

#55939 closed defect (bug) (duplicate)

mime types of office template files are wrong determined

Reported by: o815's profile o815 Owned by:
Milestone: Priority: normal
Severity: minor Version: 4.7.3
Component: Media Keywords:
Focuses: Cc:

Description

Using current wp 6 public release file uploads for office templates like
file.dotx
another.xltx

are not possible because wp core is making false detection attempt

test.dotx = WordPress recognizes that the file type is [application/vnd.openxmlformats-officedocument.wordprocessingml.document].

false because: this mime type is for docx

test.xltx = WordPress recognizes that the file type is [application/vnd.openxmlformats-officedocument.spreadsheetml.sheet].

false because: this mime type is for xlsx

test files where created with an empty page in word and excel saved as template file in the save as dialog.

Change History (1)

#1 @costdev
17 months ago

  • Component changed from Filesystem API to Media
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version changed from 6.0 to 4.7.3

Hi @o815, welcome back to Trac! It looks like we're tracking this issue along with similar in #40175. Let's continue the discussion there.

Note: See TracTickets for help on using tickets.