Tuesday, December 25, 2018

Uploading Zip Files using clicking Advanced Add button generates an error message.

The source of the problem is that the zip upload function cannot handle special characters. Its not a problem with the actual zip file, but rather the zip file containing filenames with special character.

The zip specification does not specify the character encoding to be used for file names (essentially, it doesn't consider file names that include non-ASCII characters). Therefore the code currently encodes and decodes all file names within zip files using UTF-8. The suggestion is to have a Zip File constructor, a zip utility that allows the user to specific the encoding.

If this is not an option or may appear to be complicated, then renaming the file and making sure it does not have any non-ASCII character will do the trick.


No comments:

Post a Comment