Changeset 2994


Ignore:
Timestamp:
2002-02-21T18:13:16+13:00 (22 years ago)
Author:
jrm21
Message:

Added some mime types, and gave a url for "the list" of types at iana.org

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/ghtml.pm

    r1222 r2994  
    209209
    210210
     211# look for mime.types (eg in /etc, or apache/conf directories), or have a look
     212# at <ftp://ftp.iana.org/in-notes/iana/assignments/media-types/> for defaults.
    211213sub guess_mime_type {
    212214    my ($filename) = @_;
     
    245247             "pdf"=>"application/pdf", "pgm"=>"image/x-portable-graymap",
    246248             "png"=>"image/png", "pnm"=>"image/x-portable-anymap",
    247              "ppm"=>"image/x-portable-pixmap", "ppt"=>"application/powerpoint",
     249             "ppm"=>"image/x-portable-pixmap",
     250             "ppt"=>"application/vnd.ms-powerpoint",
    248251             "ps"=>"application/postscript", "qt"=>"video/quicktime",
    249252             "ra"=>"audio/x-realaudio", "ram"=>"audio/x-pn-realaudio",
     
    266269             "vrml"=>"x-world/x-vrml", "wav"=>"audio/x-wav",
    267270             "wrl"=>"x-world/x-vrml", "xbm"=>"image/x-xbitmap",
     271             "xls"=>"application/vnd.ms-excel",
    268272             "xpm"=>"image/x-xpixmap", "xwd"=>"image/x-xwindowdump",
    269273             "xyz"=>"chemical/x-pdb", "zip"=>"application/zip");
Note: See TracChangeset for help on using the changeset viewer.