Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/storage/PhabricatorFile.php
Context not available. | |||||
return idx($mime_map, $mime_type); | return idx($mime_map, $mime_type); | ||||
} | } | ||||
public function isVideo() { | |||||
if (!$this->isViewableInBrowser()) { | |||||
return false; | |||||
} | |||||
$mime_map = PhabricatorEnv::getEnvConfig('files.video-mime-types'); | |||||
$mime_type = $this->getMimeType(); | |||||
return idx($mime_map, $mime_type); | |||||
} | |||||
public function isTransformableImage() { | public function isTransformableImage() { | ||||
// NOTE: The way the 'gd' extension works in PHP is that you can install it | // NOTE: The way the 'gd' extension works in PHP is that you can install it | ||||
// with support for only some file types, so it might be able to handle | // with support for only some file types, so it might be able to handle | ||||
Context not available. |