public static function create($path, $type) { if (strpos($path, '@') === 0) { $path = substr($path, 1); } $info = pathinfo($path); $mimeType = Services_Soundcloud_File_Format::getMimeType($info['extension'], $type); $name = $info['basename']; return static::getPostField($path, $mimeType, $name); }
/** * @see Services_Soundcloud_File_Format::getMimeType() * * @access public */ function getMimeType($extension, $type) { return Services_Soundcloud_File_Format::getMimeType($extension, $type); }