You are not logged in.

#1 2011-04-03 14:13:32

pedro_sland
Member
Registered: 2010-05-21
Posts: 15

MS OOXML Format MIME

I am trying to get the mime type of a docx file (I don't mind so much about the others) using PHP (5.3.x) with the FileInfo extension. It returns application/zip. I know why it does this (OOXML files are zipped) but I want to fix it. It is possible because it is right for OOo docs. The problem seems to stem from the file command and it's mime database. Has someone already fixed this? Can someone explain in simple terms how? I did read the man page but I'm not a huge amount wiser!

Thanks for your help.

Offline

Board footer

Powered by FluxBB