Hi,
I came across an issue with IMCE during file upload into server(LINUX) with Chinese file name. I uploaded a file with name 新聞稿.pdf.
After upload has been finished, file name was shown wrongly to us only with extension. If same named file is already there then the rename characters is shown accompanied with extension.
Ex: .pdf, _0.pdf, _1.pdf, _2.pdf instead of 新聞稿.pdf, 新聞稿_0.pdf, 新聞稿_1.pdf, 新聞稿_2.pdf
But, If we refresh the page, Then all files has been shown with correct full file names.
See image below:
Can somebody guide me how to fix this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | imce.page_.inc_.patch | 2.24 KB | mamallana |
| imce_issue.png | 55.08 KB | pasug |
Comments
Comment #2
mamallana commentedPlease apply this patch, it will resolve your issue.
Usually PHP's basename() removes all non-US-ASCII characters, so drupal_basename() was added as an alternative.
Comment #3
pasug commentedAh, drupal_basename() works perfect.
Comment #4
mamallana commentedComment #6
ufku commentedCommitted, thanks.
Comment #7
ufku commented