[wp-trac] [WordPress Trac] #15955: move_uploaded_file mangles non-ascii characters on Windows platforms
WordPress Trac
noreply at wordpress.org
Fri Jun 24 07:51:09 UTC 2016
#15955: move_uploaded_file mangles non-ascii characters on Windows platforms
--------------------------+------------------------------
Reporter: t31os_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 2.0
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by sebastian.pisula):
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-obroĚ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/15955#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list