laradrop icon indicating copy to clipboard operation
laradrop copied to clipboard

laradrop does not support utf-8 filename saving

Open cnweibo opened this issue 8 years ago • 3 comments

Hi, it is great to use laradrop package in laravel 5 project. Unfortunately, it seems laradrop does not support utf-8 filenames. I test it with a chinese 中文.jpg, the file existing in directory seems mess. The english name is ok. Please check it. Thanks!~!

cnweibo avatar Oct 09 '16 08:10 cnweibo

By the way :the filename in the web page is still ok. The only problem is when i inspect uploaded file on the server directory, it looks messy.

cnweibo avatar Oct 09 '16 08:10 cnweibo

Thanks for reporting this. I will look into it.

jasekz avatar Oct 10 '16 00:10 jasekz

@jasekz ,for the utf-8 filename saving, currently, my solution was to md5(utf8name) and the filenames on disk is: b5c397d04c47e1e3cc3acc991d07a49f-20161014094544 ,something like that. alias field in database shows the right file name. I think it is enough for me to workaround right now. Anyway, it will be great if laradrop support utf-8 named file on disk. Thanks~!

cnweibo avatar Oct 14 '16 04:10 cnweibo