Home | Forum | Documentation

Code Stylist Documentation





Home | Docs | Entry 18



Supported Mime types

The dbscript framework checks uploaded file-name-extension to set the content-type in the new record's Atompub-style metadata entry.

These mime types are supported so far:


    'aif'   => 'audio/x-aiff',
    'aiff'  => 'audio/x-aiff',
    'aifc'  => 'audio/x-aiff',
    'm3u'   => 'audio/x-mpegurl',
    'mp3'   => 'audio/mp3',
    'ra'    => 'audio/x-realaudio',
    'ram'   => 'audio/x-pn-realaudio',
    'rm'    => 'audio/x-pn-realaudio',
    'wav'   => 'audio/wav',
  
    'avi'   => 'video/x-ms-wm',
    'mp4'   => 'video/mp4',
    'mpeg'  => 'video/mpeg',
    'mpe'   => 'video/mpeg',
    'mpg'   => 'video/mpeg',
    'mov'   => 'video/quicktime',
    'movie' => 'video/x-sgi-movie',
    'qt'    => 'video/quicktime',
    'swa'   => 'application/x-director',
    'swf'   => 'application/x-shockwave-flash',
    'swfl'  => 'application/x-shockwave-flash',
    'wmv'   => 'video/x-ms-wmv',
    'asf'   => 'video/x-ms-asf',
  
    'sit'   => 'application/x-stuffit',
    'zip'   => 'application/zip',
    'tgz'   => 'application/g-zip',
    'gz'    => 'application/g-zip',
    'gzip'  => 'application/g-zip',
    'hqx'   => 'application/mac-binhex40',
  
    'ico'   => 'image/vnd.microsoft.icon',
    'bmp'   => 'image/bmp',
    'gif'   => 'image/gif',
    'jpg'   => 'image/jpeg',
    'jpeg'  => 'image/jpeg',
    'jpe'   => 'image/jpeg',
    'pct'   => 'image/pict',
    'pic'   => 'image/pict',
    'pict'  => 'image/pict',
    'png'   => 'image/png',
    'svg'   => 'image/svg+xml',
    'svgz'  => 'image/svg+xml',
    'tif'   => 'image/tiff',
    'tiff'  => 'image/tiff',
  
    'rtf'   => 'text/rtf',
    'pdf'   => 'application/pdf',
    'xdp'   => 'application/pdf',
    'xfd'   => 'application/pdf',
    'xfdf'  => 'application/pdf',









Sign In to post comments







Bookmark this page:








Sign In



Click here to become a member. It's free and convenient.