Skip to content
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
@tougher

Description

@tougher

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions