Your list of Mime-Types, some is not founf on W3schools

See all posts Reply

Your list of Mime-Types, some is not founf on W3schools new!
by kanakosoup, 13 years, 6 months ago
Hello!

Can you refer me to your development listings of mime-types?

I'm writing if statements to embed a image extensions (like wordpress media library icons) and I can't find audio/x-ms-wma @ w3schools. I don't want to miss anything but it's not really a major problem because if ever I missed one mime-type, it prints the default blank icon.

// Credits http://www.w3schools.com/media/media_mimeref.asp
if ( ( $media->media_filetype == 'image/jpeg' ) ||
  ( $media->media_filetype == 'image/bmp' ) ||
  ( $media->media_filetype == 'image/gif' ) ||
  ( $media->media_filetype == 'image/pipeg' ) ||
  ( $media->media_filetype == 'image/png' ) ||
  ( $media->media_filetype == 'image/tiff' ) ||
  ( $media->media_filetype == 'image/xbitmap' ) ||
  ( $media->media_filetype == 'image/x-ms-bmp' ) ||
  ( $media->media_filetype == 'image/icon' ) )
  {
    $PSOUP_tpl->assign_vars(array(
      'media.IMAGE' => '../' . $PSOUP_CONTENT_DIR['Images'] . 'mime-types/image.png',
    ));
  }
  elseif ( ( $media->media_filetype == 'audio/basic' ) ||
    ( $media->media_filetype == 'audio/mid' ) ||
    ( $media->media_filetype == 'audio/mpeg' ) ||
    ( $media->media_filetype == 'audio/x-aiff' ) ||
    ( $media->media_filetype == 'audio/x-mpegurl' ) ||
    ( $media->media_filetype == 'audio/x-pn-realaudio' ) ||
    ( $media->media_filetype == 'audio/wav' ) ||
    ( $media->media_filetype == 'audio/x-ms-wma' ) )
    {
      $PSOUP_tpl->assign_vars(array(
        'media.IMAGE' => '../' . $PSOUP_CONTENT_DIR['Images'] . 'mime-types/audio.png',
      ));
    }
else
{
  $PSOUP_tpl->assign_vars(array(
    'media.IMAGE' => '../' . $PSOUP_CONTENT_DIR['Images'] . 'mime-types/empty.png',
  ));
}
Reply
Re: Your list of Mime-Types, some is not founf on W3schools new!
by colin, 13 years, 6 months ago
The list of MIME types in the class has been gathered overtime. Sometimes users send me some MIME types they find in the wild, and ask me to include them in the class.Reply