On 19.09.2015 21:32, Robinson Tryon wrote: >> On Sat, Sep 19, 2015 at 09:30:55AM -0700, julien2412 wrote: >>> I'm not sure and, perhaps it's not related, but it seems docx attachments >>> have mimetype "application/zip" instead of >>> "application/vnd.openxmlformats-officedocument.wordprocessingml.document" >>> (eg: https://bugs.documentfoundation.org/show_bug.cgi?id=94359). Even if >>> confirmed, not a blocker of course ! :-) > > Because OOXML and ODF both use ZIP as a container for a bunch of XML, > I wonder if the type-detecting mechanisms aren't sufficiently nuanced > to detect and differentiate between ZIP and ZIP+(DOCX guts).
> Looks like ODF files are recognized quite well on this system, but > it's struggling with OOXML. Is there a correlation between authoring > software and recognition? ODF packages were specifically designed so that relatively dumb tools like "file" can just look up the mimetype at a particular offset in the file; OOXML packages on the other hand don't make it so easy. > On Sat, Sep 19, 2015 at 1:27 PM, David Tardon <[email protected]> wrote: >> That's nothing new. The attachment format auto-detection has never really >> worked. > > We did have much worse file-type detection when we were hosted at FDO, > but I believe that things have gotten significantly better. yes, there has definitely been a significant improvement. > David: Is there something we could do to help upstream utilities more > easily recognize OOXML files? (both files that LibreOffice creates, > as well as ones from other sources) possibly the check in file could be made smarter, if anybody has time to investigate that... _______________________________________________ LibreOffice mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice
