Actions
mimetype.use-xattr option¶
Description¶
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
mimetype.xattr-name¶
If available, the name of the XFS-style extended attribute used to retrieve the value for the Content-Type response header. If it's not defined or not available, fall back to the mimetype.assign assignment.
Examples:
mimetype.xattr-name = "Content-Type" (default)
mimetype.xattr-name = "user.mime_type" (freedesktop.org convention)
See Also¶
Updated by gstrauss over 8 years ago · 7 revisions