craftcms / craftcms/cms

Non ascii characters are removed from uploaded filenames

Open
#7,640 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.