After a little thinking I decided that I’m not feeling comfortable messing with the locale (and you probably won’t use it) so I just used something like here and changed line 216 in upload.php from:
$current_filename = basename($current_file);
to the following lines (with comment):
// I added a after every / cause basename doesn’t deal with UTF-8 names good, then // substr with offset 1
$current_file_add_a = str_replace(‘/’, ‘/a’, $current_file);
$current_filename=substr(basename($current_file_add_a),1);
Hope that you will correct this (hopefully by finding better solution), if you won’t I hope it will help some1.
P.S.
I don’t understand why you define $current_filename in line 209 and than not use it, old code leftovers?
line 209: $current_filename = substr($current_filename, (strrpos($current_filename, “/”) + 1));