OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

Fixing OpenDocument MIME magic on Linux

When working on the beta of Officeshots.org I ran into an interesting problem with file type and MIME type detection of OpenDocument files. When a user uploads an ODF file to Officeshots I want to determine the MIME type myself using the PHP Fileinfo extension. On Linux, the PHP Fileinfo extension relies on the magic file that is provided by the file package. The magic file contains a series of tests that can determine the file type and MIME type of a file by its contents. I found out that the magic file is incomplete for OpenDocument files. In this article I will show you what is wrong with the magic file and how you can fix it.

Read More In: News, Rumors and Gossip

The world is talking about GNU, Linux, and the world of open and free software. Brought to you by LXer.com, stay up to date on the freshest news on your favorite code, firmware, or distro.


Featured Article

How to Configure Windows Network Browsing in Tomato on NETGEAR WNR3500L

by Brandon C on October 22, 2010 1:15 PM

With Windows, browsing computers in the network can take a long time with serious delays before getting the computer lists. This especially happens in environments where there is not a server available which most of us have in our home scenarios. If not aware of it the TomatoUSB firmware can... More »

Topics: WNR3500L Tomato

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window