Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Trouble with uploading files with cyrillic names

Go to End

2 Posts   1071 Views


Community Member, 19 Posts

26 May 2016 at 10:01pm

When I'm uploading in CMS files with cyrillic names, cyrillic symbols just disappears. For example: filename "мой_файл.txt" becomes just "txt" without "мой_файл." Filename has windows-1251 encoding.
Firebug shows :

 POST /admin/projects/Project/EditForm/field/Project/item/6/ItemEditForm/field/Projects/upload HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Content-Length: 377
Content-Type: multipart/form-data; boundary=---   

And at the Post tab shows:

Content-Disposition: form-data; name="SecurityID"
Content-Disposition: form-data; name="Projects[Uploads][]"; filename="мой_Ñайл.txt"**
Content-Type: text/plain

Please give me any help.


Community Member, 19 Posts

3 June 2016 at 10:14pm