Package web2py :: Package gluon :: Module contenttype
[hide private]
[frames] | no frames]

Module contenttype

source code

This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <> License: LGPLv3 (

CONTENT_TYPE dictionary created against' shared mime info database version 0.70.

Functions [hide private]
contenttype(filename, default='text/plain')
Returns the Content-Type string matching extension of the given filename.
source code
Variables [hide private]
  CONTENT_TYPE = {'.123': 'application/vnd.lotus-1-2-3', '.3ds':...
Variables Details [hide private]


{'.123': 'application/vnd.lotus-1-2-3',
 '.3ds': 'image/x-3ds',
 '.3g2': 'video/3gpp',
 '.3ga': 'video/3gpp',
 '.3gp': 'video/3gpp',
 '.3gpp': 'video/3gpp',
 '.602': 'application/x-t602',
 '.669': 'audio/x-mod',