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
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
mbastian
Oct 15, 2015
Owner
Just to clarify, do you mean creating a "FileImporterBuilder" that is associated with ".zip" types?
Just to clarify, do you mean creating a "FileImporterBuilder" that is associated with ".zip" types? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
allfro
Oct 15, 2015
Yes
On Thursday, 15 October 2015, Mathieu Bastian notifications@github.com
wrote:
Just to clarify, do you mean creating a "FileImporterBuilder" that is
associated with ".zip" types?—
Reply to this email directly or view it on GitHub
#737 (comment).
allfro
commented
Oct 15, 2015
Yes On Thursday, 15 October 2015, Mathieu Bastian notifications@github.com
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
mbastian
Oct 15, 2015
Owner
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?
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? |
allfro commentedJan 31, 2013
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: