Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
File path beta1 Drupal8.0.1, upload chinese pdf file. got following error:
File upload error. Could not move uploaded file.
It does not work at all. forexample using following name:
"中国.pdf"
Comment | File | Size | Author |
---|---|---|---|
#3 | 中国.png | 49.6 KB | Deciphered |
Comments
Comment #2
g089h515r806 CreditAttribution: g089h515r806 commentedIt does not work first, but now it works.
Comment #3
Deciphered CreditAttribution: Deciphered commentedThat seems a tad inaccurate, I think what you meant to say was "I have a problem, something I expect to work does not.". Not working at all implies the whole module does nothing at all.
There are in fact automated tests in place that specifically test non-latin characters, however they are Russian characters rather than Chinese, but I can confirm that the functionality does in fact work.
Of course, to ensure that the Automated tests aren't providing false positives I was certain to do a manual test with a file named exactly as you provided (中国.pdf) and everything worked exactly as expected. See screenshot for proof.
However, I don't doubt you are experiencing some issue, which I would be more than happy to look into for you to ensure there is not an issue in certain environments.
Please provide some reproduction steps using http://simplytest.me (so that I can see the issue in the same environment), and failing that, provide me some steps and information about your development environment to ensure I can reproduce the issue.
Comment #4
g089h515r806 CreditAttribution: g089h515r806 commentedyes, it is not a bug of this moudle. this module works correctly.
It seems that Drupal core does not support upload chinese file name at some enviroment.
This module transliterate file name after you save your node. It will be perfect if before save the node.
Comment #5
Deciphered CreditAttribution: Deciphered commentedAgain, if you can provide steps on reproducing the issue I would like to try to see if there's anything I can do to help.