Non ascii characters are removed from uploaded filenames
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
After uploading Craft to new serwer, this probles started to occur. Non ascii characters are removed (not replaced) from uploaded filenames, until ascii character is encountered.
So, ąśźźXół turns into Xół - everything before X gets removed. If convertFilenamesToAscii is set to true, this filename would change to Xol - but everything before X would be removed all the same.
Here is my system info:
PHP version | 7.4.7
-- | --
Linux 4.4.202.core2.42
MySQL 5.7.28
GD 7.4.7
Craft Solo 3.6.7
I also sent you my phpinfo dump on support email.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce an upload using the reported filename ąśźźXół on the listed PHP/Linux environment, then trace the uploaded-filename handling and the convertFilenamesToAscii behavior. Done means non-ASCII characters are preserved or converted consistently without dropping the prefix, with regression coverage for both conversion settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100