Project

General

Profile

Mimetype use-xattrDetails » History » Revision 6

Revision 5 (stbuehler, 2009-02-17 12:11) → Revision 6/7 (stbuehler, 2012-08-11 10:42)

h1. mimetype.use-xattr option 

 h2. Description 

 h3. mimetype.use-xattr 

 If available, use the XFS-style extended attribute interface to retrieve the "Content-Type" attribute on each file, and use that as the mime type. If it's not defined or not available, fall back to the mimetype.assign assignment. 
 Example: 

    mimetype.use-xattr = "enable" 

 on shell use: 

    $ attr -s Content-Type -V image/svg svgfile.svg 
    
 or 

    $ attr -s Content-Type -V text/html indexfile 

 h2. See Also 

 * [[mimetype_assignDetails|mimetype.assign [[mimetype.assignDetails|mimetype.assign option]]