cyberpanel
cyberpanel copied to clipboard
Cyber panel cannot upload file that name in Thai language on web file manager
Get when try to upload file with thai language (no problem on English)
Cyberpanel : 1.9 Build 1 Os: Cent os 7 Client: Windows 10 1903, Firefox 69.0.3
Confirming that the primary scope of this issue remains. However, the error showed above no longer appears. After some testing:
-
A file named นี่คือคำในภาษาไทย.txt WILL show as uploaded in the upload window:
-
However, it WILL NOT appear in the in the File Manager when uploaded this way. It WILL appear if uploaded via FTP but WILL NOT be readable by the File Manager:
That said, I have my language set to English and did not test it in any other language. Maybe @whattheserver could shed more light on if this is due to no locale for Thai or an encoding problem (not my area of expertise). If it is, @pacharachantawong perhaps you could consider helping translate CyberPanel since there is no current support for Thai.
Additionally, if you would like to see support for Thai (assuming that's the issue) and do not want to translate it yourself, please post in the Feature Request forums and close this issue.
I believe this stems from a .decode('ascii') somewhere in the template, but am not 100% sure on where. I'm seeing a few instances of using utf-8 sprinkled around in the code base, so that seems like a good things to change to. Not certain on the thought process of using just ascii here. @usmannasir might be able to chime in here, as there might be something I'm missing as to why the need for ascii.