public function forceMimeType($link, $mimeType)
    {
        $resource = new \core_kernel_classes_Resource(\tao_helpers_Uri::decode($link));
        return $resource->editPropertyValues(new \core_kernel_classes_Property(MediaService::PROPERTY_MIME_TYPE), $mimeType);
    }
public function forceMimeType($link, $mimeType)
    {
        $resource = new \core_kernel_classes_Resource(\tao_helpers_Uri::decode($link));
        return $resource->editPropertyValues(new \core_kernel_classes_Property(MediaService::PROPERTY_MIME_TYPE), $mimeType);
    }
public function forceMimeType ( $ link , $ mimeType ) { $ resource = new \ core_kernel_classes_Resource ( \ tao_helpers_Uri :: decode ( $ link ) ) ; return $ resource -> editPropertyValues ( new \ core_kernel_classes_Property ( MediaService :: PROPERTY_MIME_TYPE ) , $ mimeType ) ; }
Force the mime-type of a resource

@param string $link
@param string $mimeType
@return boolean
Force the mime - type of a resource