Thanks very much Nick - I'll open a JIRA with the Detector I'm using attached, it should be pretty easy to integrate back into ZipDetector if that's the right thing to do.
I figured out my specific issue - it was with how I was handling the input stream in the detector. Apparently, I wasn't returning it back to the beginning of the stream after processing, which was why the magic detectors were failing. -Paul On Jun 18, 2013, at 8:34 AM, Nick Burch <[email protected]> wrote: > On Sun, 16 Jun 2013, Paul Brinich wrote: >> I've been struggling with this for a bit and I was hoping you guys could >> help. I have a written a custom detector for detecting a subclass of >> application/zip. Specifically, for properly detecting files from the apple >> app store which are basically zip files with a few special files in it >> (similar to android APK files). > > The simplest fix would be to open a new issue in Jira, describe there the > mimetype to return and how to detect a zip like that, and someone'll update > the existing "specialise a zip to the real subtype" code in > ZipContainerDetector > > If you do still want to roll your own dedicated on, I'd suggest you take a > look at how ZipContainerDetector does it, as you'd want something similar > > Nick
