WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#9924 closed enhancement (fixed)

In Media Library, if file does not have an extension, try to fallback to mime type

Reported by: mdawaffe Owned by:
Milestone: 3.0 Priority: normal
Severity: minor Version:
Component: Media Keywords: has-patch commit
Focuses: Cc:

Description

In the Media Library, each file's extension is listed in that file's row (e.g. "PDF" or "JPG").

In some custom upload solutions, the file may not have an extension, but does have a mime type stored in the posts table.

Attached displays the mime type (stripping off "image/" for image mime types) if no extension is found.

Attachments (2)

9924.diff (1.6 KB) - added by mdawaffe 5 years ago.
9924-updated.diff (1.7 KB) - added by xibe 4 years ago.
Updated patch.

Download all attachments as: .zip

Change History (7)

mdawaffe5 years ago

comment:1 Denis-de-Bernardy5 years ago

  • Keywords dev-feedback removed

still applies clean, and +1

comment:2 ryan4 years ago

  • Milestone changed from 2.9 to 3.0

xibe4 years ago

Updated patch.

comment:3 xibe4 years ago

Patch updated to latest trunk.

comment:4 nacin4 years ago

  • Keywords commit added

This makes sense to do.

comment:5 nacin4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13541]) Fall back to displaying mime type when file has no extension. fixes #9924 props mdawaffe

Note: See TracTickets for help on using tickets.