[File] [PATCH] Microsoft Office XML with additional directory

Christos Zoulas christos at zoulas.com
Mon Nov 8 13:52:30 UTC 2021


That looks fine, thanks!

christos

> On Nov 8, 2021, at 4:58 AM, Andy Beverley <andy at andybev.com> wrote:
> 
> I've come across a Microsoft Office XML file with an additional directory within the zip. I'm not sure what application is actually generating it unfortunately (it's been submitted to our application via a user).
> 
> The format of the zip file is (note additional customXml folder):
> 
> /
> ├─ customXml/
> ├─ docProps/
> ├─ _rels/
> ├─ word/
> ├─ [Content_Types].xml
> 
> With the current version of ooxml, this particular file format is recognized as a "Microsoft OOXML" file but the mime type is missing.
> 
> I've attached a patch that fixes recognition of the mime type. Is the patch okay or does it need some more work?
> 
> Thanks,
> 
> Andy
> <msooxml.patch>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20211108/0cdb92cf/attachment.asc>


More information about the File mailing list