symfony-cmf / media-bundle

UNMAINTAINED - Minimalistic interfaces to handle media in the context of the CMF
http://cmf.symfony.com/
30 stars 40 forks source link

FileController can't handle file name with Chinese character #150

Closed videni closed 5 years ago

videni commented 8 years ago

When I upload a file which has Chinese character name, I can successfully upload the file , but it returns a wrong url address to display.

wangjiede commented 8 years ago

I have also encountered this problem, return to the URL address: [/app_dev.php/media/image/cms/medias/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202015-12-19%2014.04.29.png_1457160688_82052323.png image

dbu commented 8 years ago

this would mean there is a general encoding issue for higher range utf characters. now the reason could be in several different places. can you try to debug at which point the encoding breaks? is it when storing into PHPCR? or can the document still be retrieved but the name is invalid? or is it the Imagine bundle that ends up with an invalid path?

videni commented 5 years ago

to old, can be closed