Make WordPress Core

Opened 5 weeks ago

#44156 new defect (bug)

REST API: Media uploads ignore CJK/emoji chars in filenames

Reported by: 0mirka00 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.6
Component: REST API Keywords:
Focuses: Cc:


When creating a new media item through the media endpoint, CJK and emoji characters in the payload file's name are not correctly set as the title of the resulting media file.

While explicitly supplying the CJK filename as a title argument works as expected, this is not necessary with non-CJK filenames.

The GUI uploader (media-new.php) handles CJK filenames correctly.

Steps to reproduce:

  1. POST a file with filename 日本語.mp3 to /wp/v2/media

Result: title: {raw: "", rendered: ""}

Expected result:title: {raw: "日本語", rendered: "日本語"}

Change History (0)

Note: See TracTickets for help on using tickets.