This repository was archived by the owner on May 25, 2023. It is now read-only.
This repository was archived by the owner on May 25, 2023. It is now read-only.
Unicode normalization of filenames #1339
Closed
Description
event.dataTransfer.files[0].name are getting the name of the file directly from the filesystem. This can cause problems when uploading files with special chars in the filename.
In my case I get Designha%u030Andbog.pdf (escaped with the JS escape() function) from the drop callback function, but i get Designh%E5ndbog.pdf from the done callback which originates from the server. The latter is the most correct. See my post at http://stackoverflow.com/questions/10805711/javascript-string-comparison-fails
To solve this issue, unicode normalization is needed (pointed out by slevithan at stackoverflow). This could be done in the _normalizeFile function, but it will require a lot of code.
Metadata
Metadata
Assignees
Labels
No labels