[wp-trac] [WordPress Trac] #37163: Invalid filename after upload

WordPress Trac noreply at wordpress.org
Fri Jun 24 07:37:39 UTC 2016


#37163: Invalid filename after upload
------------------------------+-----------------------------
 Reporter:  sebastian.pisula  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Upload            |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I have two problems during upload:

 1. I have filename: `FitEasy-Konkurs-Koktajle-po-obróbce-6070.jpg`. After
 upload file is saved in wp-content/uploads with invalid filename:
 `FitEasy-Konkurs-Koktajle-po-obróbce-6070-300x199.jpg`. Very important:
 this char: `ó` (ASCII: 111) not is a polish `ó` (ASCII: 195).

 2. So problem is with filename with polish chars:
 `ĘÓĄŚŁŻŹĆŃęóąśłżźćń.jpg`. After upload in uploads dir I can see
 `Ä˜Ă“Ä„ĹšĹĹ»ĹąÄ†ĹƒÄ™ĂłÄ…Ĺ›Ĺ‚ĹĽĹşÄ‡Ĺ„.jpg`. So I cant see preview because
 this can't find file in serwer.

 Problem is in Windows 10, PHP Version 5.5.9, Apache/2.4.7 (Win32)
 OpenSSL/1.0.1e PHP/5.5.9

 If I use `Filenames to latin` plugin second problem not exists but exists
 first problem.

 I think that WordPress should take care that uploaded filenames should be
 valid without use other plugins. I think that this is important error with
 upload.

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


More information about the wp-trac mailing list