Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
FileImporter API Broken with ZIP files #737
The FileImporter Plugin API does not pass the FileObject corresponding to the file chosen in the chooser. Instead, contents of the zip file are passed to the isMatchingImporter() method which breaks import. To reproduce the issue:
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Ok, I see. Unfortunately we built the Importer API so input files can be zipped. That's a convention we defined and didn't anticipate the need to support File importers that specifically specialize in opening zip files. I don't see a way to support this seamlessly but we should make it clear in the documentation what the "reserved" types are (zip, gzip, tar.gz etc.). An easy workaround would simply to rename the file into something specific such as "myzip", right?