Homec4science

Add Filesystem::getMimeType()

Authored by epriestley <git@epriestley.com> on Feb 14 2012, 20:43.

Description

Add Filesystem::getMimeType()

Summary: If Fileinfo is avilable, use that instead. If file isn't present, try
mime_content_type().

Test Plan:

  • Ran mime.php on a bunch of files on a couple of systems.
  • Commented out blocks to force each block to execute.

Reviewers: btrahan, davidreuss, Koolvin

Reviewed By: davidreuss

CC: aran, epriestley

Maniphest Tasks: T869

Differential Revision: https://secure.phabricator.com/D1609

Details

Committed
epriestley <git@epriestley.com>Feb 14 2012, 20:43
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU46aa501569bf: Merge pull request #9 from ptarjan/master
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUa9a9370dfc5c: Add Filesystem::getMimeType() (authored by epriestley <git@epriestley.com>).Feb 14 2012, 20:43