[wp-trac] [WordPress Trac] #44156: REST API: Media uploads ignore CJK/emoji chars in filenames

WordPress Trac noreply at wordpress.org
Sat May 19 19:52:21 UTC 2018


#44156: REST API: Media uploads ignore CJK/emoji chars in filenames
--------------------------+-----------------------------
 Reporter:  0mirka00      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.9.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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: "日本語"}`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44156>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list