Lines Matching defs:mime
315 [$ext, $mime] = mimetype($id);
329 ['name' => $path, 'mime' => $mime, 'ext' => $ext],
384 'mime' => $imime,
446 if (!isset($file['mime']) || !isset($file['ext'])) {
447 [$ext, $mime] = mimetype($id);
448 if (!isset($file['mime'])) {
449 $file['mime'] = $mime;
482 $ok = media_contentcheck($file['name'], $file['mime']);
496 $data[3] = $file['mime'];
532 * @param string $imime mime type
645 * @param string $mime mimetype
648 function media_contentcheck($file, $mime)
661 if (str_starts_with($mime, 'image/')) {
663 if ($mime == 'image/gif' && $info[2] != 1) {
665 } elseif ($mime == 'image/jpeg' && $info[2] != 2) {
667 } elseif ($mime == 'image/png' && $info[2] != 3) {
671 } elseif (str_starts_with($mime, 'text/')) {
688 * @param string $mime mime type
691 function media_notify($id, $file, $mime, $old_rev = false, $current_rev = false)
813 [, $mime] = mimetype($image);
814 if ($mime == 'image/jpeg' && file_exists(mediaFN($image))) {
1038 [, $mime] = mimetype($image);
1039 if ($mime == 'image/jpeg') media_metaform($image, $auth);
2161 * @return array - array(mime type => file ID)
2186 * @param string $mime - mimetype of media file
2192 function media_supportedav($mime, $type = null)
2211 return in_array($mime, $supportedAv);