format
The format is a named character vector
where the names are the MIME types
and the values are the file
extensions.source
The table of MIME types and extensions was programmatically extracted
from http://www.webmaster-toolkit.com/mime-types.shtml or
http://reference.sitepoint.com/html/mime-types-full with
tbls = readHTMLTable("http://www.webmaster-toolkit.com/mime-types.shtml")
tmp = tbls[[1]][-1,]
mimeTypeExtensions = structure(as.character(tmp[[2]]), names = gsub("^\.", "", tmp[[1]]))
save(mimeTypeExtensions, file = "data/mimeTypeExtensions.rda")
The IANA list is not as convenient to programmatically compile.
http://www.ltsw.se/knbase/internet/mime.htp